Program to find the simple interest.

C Programming Language / Fundamentals of C Language

6350

  • The initial money borrowed or lent out for a certain period is called the Principal (P).
  • The extra money paid for using others money is called Interest.
  • The total money paid back to the lender at the end of the time period (T) for which the principal is borrowed is called an amount (A).
  • The rate at which the interest has to be paid per annum is called rate of interest (R).
Program to find the simple interest.

Program:

#include"stdio.h"
void main()
{
// variable declaration
int p,r,t,si; 

// take values from user

printf("enter principle, Rate of interest & time to find simple interest:\n ");
scanf("%d%d%d",&p,&r,&t);

// Calculate simple interest
si=(p*r*t)/100;

// Print result
printf("simple intrest= %d\n",si);

}

Output:

enter principle, Rate of interest & time to find simple interest:
 1000 8 2
simple intrest= 160
Press any key to continue . . .

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.