Wednesday, February 10, 2010

C Program To Find Simple Interest

/* C Program to find Simple Interest */
#include< stdio.h>
#include< conio.h>
void main()
{
float p,t,r,si;
clrscr();
printf("Enter the value for principle_amt,time,rate\n");
scanf("%f%f%f",&p,&t,&r);
si=p*t*r/100;
printf("Simple Interest=%f",si);
getch();
}

No comments:

Post a Comment