Pages
Home
Contact Us
About Us
Privacy Policy
Download Free Turbo C/C++ Compiler
Sunday, 5 May 2013
Program In C++ To Calculate Simple Interest
#include<iostream.h>
#include<conio.h>
int main()
{
int p,r,t,i;
cout<<"Enter Principle : ";
cin>>p;
cout<<"Enter Rate : ";
cin>>r;
cout<<"Enter Time : ";
cin>>t;
i=(p*r*t)/100;
cout<<"Simple interest is : "<<i;
getch();
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment