Wednesday 18 March 2015

simple interest

#include<stdio.h>
#include<conio.h>
void main()
{
float p,r,t,si;
clrscr();
printf("\n enter principle amount ,rate of interest and time period:\n");
scanf("%f%f%f",&p,&r,&t);
si=(p*r*t)/100;
printf("simple interest is %.2f",si);
getch();
}

No comments:

Post a Comment