Principal ammount, rate of Interest and time period is Taken from user and Simple Interest is calculated.
Select To use this code as it is.. select and copy paste this code into code.cpp file :)
- #include <iostream.h>
- #include <conio.h>
- void main()
- {
- clrscr();
- float p,r,t,f,s=0;
- cout<<"Please enter Principle ammount ";
- cin>>p;
- //Coding by: Snehil Khanor
- //http://WapCPP.blogspot.com
- cout<<"Please enter rate of Interest. ";
- cin>>r;
- cout<<"Please enter Time Period ";
- cin>>t;
- f=p*r*t;
- s=f/100;
- cout<<"The Simple iterest is "<<s;
- getch();
- }
3 comments:
thanks for your help.
Thankssss
u r a lot of help
Post a Comment