sahajjain01

Calculate simple interest.

Aug 4th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. //Program to calculate simple interest.
  2. #include<iostream.h>
  3. #include<conio.h>
  4. void main()
  5. {
  6.     clrscr();
  7.     float a,b,c,d,e;
  8.     cout<<"Enter principal: ";
  9.     cin>>a;
  10.     cout<<"Enter rate% : ";
  11.     cin>>b;
  12.     cout<<"Enter time in years: ";
  13.     cin>>c;
  14.     a=a*b*c/100;
  15.     cout<<"The simple interest is: "<<a;
  16.     getch();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment