Thursday 31 October 2013

C++ Program to find Compound Interest.

#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
float p,r,t,ci;
clrscr();

cout<<"Enter Principle,Rate and Time ";
cin>>p>>r>>t;
ci=pow(p*(1+r/100),t);

cout<<"\n"<<"Compound Interest = "<<ci<<"%";
getch();
}

--------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment