// Compiler : Dev-C++ 4.9.9.2
#include<stdio.h>
int main()
{
float p,r,si;
int t;
printf("Principle : ");
scanf("%f",&p);
printf("\n\nRate : ");
scanf("%f",&r);
printf("\n\nTime : ");
scanf("%d",&t);
si=(p*r*t)/100.0;
printf("\n\n\nAmount : Rs. %5.2f\n\nRate : Rs. %5.2f%\n\nTime : %d Years\n\nSimple Intrest : %5.2f",p,r,t,si);
getch();
return 0;
}
Post a Comment