C program to calculate Simple Interest
Given principal (amount), time and interest rate and we have to calculate simple interest based on given rate of given time period.
In this program, variable amount is going to be used to store principal amount, rate is going to used to store interest rate and time is going to be used to store time and si is going to be used to store simple interest.
Formula to calculate simple interest: (principal x rate x time )/100
C program for Simple Interest
Output
need an explanation for this answer? contact us directly to get an explanation for this answer