Monday, July 22, 2019

Find Simple Interest

Find Simple Interest:

find simple interest in c

#include<stdio.h>
#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