Here you will get C program to calculate simple interest. The formula for simple interest is given below:
P x r x t ÷ 100
Where, P is principal, r is rate and t is time.
Lets have a look on program to calculate simple interest.
C Program to Calculate Simple Interest
#include<stdio.h> void main() { float p,r,t,si; printf("Enter principal,rate and time:"); scanf("%f%f%f",&p,&r,&t); si=(p*r*t)/100; printf("\nSimple Interest = %f",si); }
Output:
Enter principal,rate and time:50000
8
1
Simple Interest = 4000.000000
Comment down below if you have any queries regarding how to calculate simple interest in C.
I just want to say what about time is it year or month or day?If you clear it will be good.
Time is in years.
yes bro..always
# awesome bro;
In which software are you typing this?????
C/C++ programming language
I want to use only two digits after decimal what i do ?
use %0.2f instead of %f
thank u
Thanks for sharing knowledge.
THANQ YOU BOSS,BEACUSE OF YOU I HAVE SUBMITTED ALL MY OS DIGITAL ASSIGNMENTS ON TIME.
I was an fresher in programming pls help me to learn more for my better future is trust you will help me
always ready to help…
try! try! & try!
i will recommend you to start with python programming language bcz it will develop confidence and the basic knowledge which will help u in learning different programming languages.