This is a C program which calculates the Simple Intrest based on the formula
SI = (principle*time*rate of intrest )/100.
PROGRAM :
SI = (principle*time*rate of intrest )/100.
PROGRAM :
#include <stdio.h>
#include <stdlib.h>
int main()
{
float SI,p,t,r;
printf("Enter Principle Amount: \t");
scanf("%f",&p);
printf("Enter Time Period: \t\t");
scanf("%f",&t);
printf("Enter Rate Of Interest: \t");
scanf("%f",&r);
SI = (p*t*r)/100;
printf("Simple Interest is \t\t%f",SI);
return 0;
}
OUTPUT :| C - Simple Interest |