FIND THE SIMPLE INTEREST
#include<stdio.h>
int main()
{
int p,r,y,si;
printf("enter the value of principle,rate and year resp.\n");
scanf("%d%d%d",&p,&r,&y);
si=(p*r*y)/100;
printf("simple interest is %d",si);
return(0);
}
//*P=PRINCIPAL
//*R=RATE
//*Y=YEAR
//*SI=SIMPLE INTEREST
0 Comments