C++ Program – Simple & Compound Interest

by Nideesh C on May 2, 2011 · 0 comments

in C++




//Downloaded From theonlinetutorials.com
//(C)1999.All rights reserved.
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float t,r,a,c,s,ci;
cout<<"Enter Principle :"<<endl;
cin>>a;
cout<<"Enter Time Period :"<<endl;
cin>>t;
cout<<"Enter Rate of Interest :"<<endl;
cin>>r;
s=(a*r*t)/100;
c= pow ((((r/100)+1)*a),t);
ci = (c-a);
cout<<"Simple Interest : "<<s<<"Compound Interest : "<<ci<<endl;
getch();
}



Not Satisfied ? Just search & get the result

Related Posts Plugin for WordPress, Blogger...
Be Sociable, Share!

Related posts:

  1. Write a C program to find the simple interest , given principle,rate of interest and times
  2. C++ program – Implementation of class
  3. C++ Program – Calculate Electricity Bill
  4. C++ program – Convert Height to feet and Inches
  5. Sample – Program to enter salary and output income tax and net salary.

Leave a Comment

Previous post:

Next post: