Programs that make your work easy
All c and C++ programs on all topics are here.
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment