saving . . . saved Regarding Assignment has been deleted. Regarding Assignment has been hidden .
Regarding Assignment
Why is the following code not running properly for calculation of simple interest?
<span style="background-color: rgb(250, 250, 250);">
<span style="background-color: rgb(250, 250, 250);">#include <stdio.h></span>
int main()
float principle=10000;
float rate=>2;
float time=2;
float SI;
SI = principle*rate*time/100;
return 0;

C-and-Cpp Tokens 13-14 min 50-60 sec 20-10-20, 8:44 p.m. bsscharan


There is an issue in your printf statement. Please note that we use printf() function with a format specifier to display a variable's value. Thus, you need to replace your printf statement with the one given below:
printf("%f", SI); 
20-10-20, 8:51 p.m. sudhakarst
Thank you.
21-10-20, 9:56 a.m. bsscharan

Login to add comment

Log-in to answer to this question.