Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Program to calculate simple interest.
- #include<iostream.h>
- #include<conio.h>
- void main()
- {
- clrscr();
- float a,b,c,d,e;
- cout<<"Enter principal: ";
- cin>>a;
- cout<<"Enter rate% : ";
- cin>>b;
- cout<<"Enter time in years: ";
- cin>>c;
- a=a*b*c/100;
- cout<<"The simple interest is: "<<a;
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment