C program to calculate Simple Interest | Simple Interest program in C Language
In this post, We are going to discuss the Simple Interest program in C Language. Before writing the program, Here is the simple interest formula.
What is Simple Interest :
A quick method of calculating the interest charge on a loan. Simple interest is determined by multiplying the interest rate by the principal by the number of periods.
Simple Interest program :
-
#include<stdio.h>
-
#include<conio.h>
-
void main()
-
{
-
float p,r,t,si;
-
clrscr();
-
printf(“Enter the amount: “);
-
scanf(“%f”,&p);
-
printf(“Enter the rate of intrest in percent: “);
-
scanf(“%f”,&r);
-
printf(“Enter the time in year: “);
-
scanf(“%f”,&t);
-
si = p*r*t/100;
-
printf(“Simple Interest is : %.2f \n”, si);
-
getch();
-
}
Program Output :
This program is compiled and executed under the Windows Operating system.
have a look at my code:Program to calculate the simple interest:
https://chetnet.blogspot.in/2017/08/c-programs.html
Very informative article.Thank you author for posting this kind of article .
http://www.wikitechy.com/view-article/power-function-in-c-with-example-and-explanation
Both are really good,
Cheers,
Venkat