Find simple interest in C by R4R Team

Here we try to find the simple interest when we have a principle, rate of interest, and time.

S.I=(principle*rate*time)/100

program-

#include< stdio.h>
int main() {
int p,r,t;
float simple_int;
printf("Enter principle\n");
scanf("%d",&p);
printf("Enter rate\n");
scanf("%d",&r);
printf("Enter time\n");
scanf("%d",&t);
simple_int=(p*r*t)/100;
printf("Simple interest is %f",simple_int);
}


output-

Enter principle
1000
Enter rate
10
Enter time
3
300.000000

-In this program, we take an input of principle, rate of interest, and time.
-Apply simple interest formula in input data and display the result.




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!