Find Simple Interest:
#include<conio.h>
void main()
{
float p,r,t,simpleinterest;
clrscr();
printf("Enter Principal\n");
scanf("%f",&p);
printf("Enter Rate in Percentage \n");
scanf("%f",&r);
printf("Enter Time in Years(decimals)\n");
scanf("%f",&t);
simpleinterest=(float)(p*r*t)/100.0;
printf("Simple Interest is %f\n",simpleinterest);
getch();
}
Output:
EmoticonEmoticon