C program to calculate Simple Interest | Write a C program to FIndout Simple Interest

Spread the love

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.

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: n);
  8.  scanf(“%f”,&p);
  9.  printf(“Enter the rate of intrest in percent: n);
  10.  scanf(“%f”,&r);
  11.  printf(“Enter the time in year: n);
  12.  scanf(“%f”,&t);
  13.  si=p*r*t/100;
  14.  printf(“Simple Interest is : %.2f”,si);
  15.  getch();
  16. }

Output :

Related programs :

  1. program to understand Prefix and postfix Increment.
  2. C program to find quadratic equation roots.
  3. program to understand Floating point Arithmetic’s.
  4. implementation of power function.

Venkatesh Macha

Hi Guys, I am Venkatesh Macha. I am a programmer and an Open Source enthusiast, Presently working as a Software Engineer. Apart from that, I love to explore new technologies and things.

You may also like...

2 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,

Leave a Reply