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 :

  1. #include<stdio.h>
  2. #include<conio.h>
  3. void main()
  4. {
  5.   float p,r,t,si;
  6.   clrscr();
  7.   printf(“Enter the amount: “);
  8.   scanf(“%f”,&p);
  9.   printf(“Enter the rate of intrest in percent: “);
  10.   scanf(“%f”,&r);
  11.   printf(“Enter the time in year: “);
  12.   scanf(“%f”,&t);
  13.   si = p*r*t/100;
  14.   printf(“Simple Interest is : %.2f \n”, si);
  15.   getch();
  16. }

Program Output :

This program is compiled and executed under the Windows Operating system.


Related Programs:


Hi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.

You may also like...

4 Responses

  1. have a look at my code:Program to calculate the simple interest:

  2. Very informative article.Thank you author for posting this kind of article .


    Both are really good,

  1. […] C program to calculate Simple Interest […]

  2. […] C program to calculate Simple Interest […]

Leave a Reply