C Program to calculate Simple Interest after User Input
Question : Write a program which enters princple amount, rate of interest and time. Then Calculate and print Simple Intrest.S.I=(P*R*T)/100
#include <stdio.h>
void main()
{
float p,t,si,r;
printf("Enter the value of p, r and t");
scanf("%f %f %f",&p,&r,&t);
si=(p*r*t)/100;
printf("value of si is %f",si);
}
Categories: c programming c programming