// PROGRAM TO CALCULATE SIMPLE INTEREST
#include <stdio.h>
void main()
{
int P,T,R;
float SI;
printf("Enter the principal amount : ");
scanf("%d",&P);
printf("Enter the number of years : ");
scanf("%d",&T);
printf("Enter rate of interest : ");
scanf("%d",&R);
SI=(P*T*R)/100;
printf("Simple interest = %f",SI);
}
0 Comments