Sunday, 25 September 2016

program of simple interest


#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float p,r,t,s;
cout<<"enter the amount";
cin>>p;
cout<<"enter the rate";
cin>>r;
cout<<"enter the time";
cin>>t;
s=p*r*t/100;
cout<<"the simple intrest is"  <<s;
getch();
}

No comments:

Post a Comment