-->

program to get simple interest and amount

//program to get simple interest
#include<stdio.h>
#include<conio.h>
void main()
{
float p,r,t;
float interest,A;
printf("enter principal,rate of interest and time\n");
scanf("%f%f%f",&p,&r,&t);
interest=(p*t*r)/100;
A=p+interest;
printf("the interest gained is=%f\n",interest);
printf("the amount after interest=%f\n",A);
getch();
}