C Program to find the simple interest

Formula for  finding simple interest
simpleinterest = (principal_amt * time * rate) / 100

				
					#include<stdio.h>
#include<conio.h>
void main()
{
int p,r,t,si;
clrscr();
printf(“enter principle, Rate of interest & time to find simple interest: ”);
scanf(“%d%d%d”,&p,&r,&t);
si=(p*r*t)/100;
printf(“simple intrest= %d”,si);
getch();
}
				
			
Output:
enter principle, rate of interest & time to find simple interest:
500
5
2
simple interest=50

Leave a Reply