C program to find the Simple Interest of given Principle for give Rate of Interest for a time period:-
// To find the Simple Interest of given Principle for give Rate of Interest for a time period:-
#include<stdio.h>
int main()
{
int P, R, T;
float SI;
printf("enter the principle value: \n",P);
scanf("%d",&P);
printf("enter the value of rate of interest: \n",R);
scanf("%d",&R);
printf("enter the Time period: \n",T);
scanf("%d",&T);
SI=P*R*T/100;
printf("The Simple Interest:%f",SI);
return 0;
}
Comments
Post a Comment