Monday, 2 March 2015

C++ Program To Find Compound Interest

Problem :- C++ Program To Find Compound Interest 

Compound Interest Formula :-

CI=P*pow((1+R/100),T) - P;

For More About Compound Interest Click Here

Solution :-

#include<iostream>
#include<math.h>
using namespace std;
int main()
{
//By-Ghanendra Yadav

float P,R,T,CI;
 
  cout<<"Enter Principal :\n";
cin>>P;

cout<<"Enter Rate :\n";
cin>>R;

cout<<"Enter Time :\n";
cin>>T;

CI=P*pow((1+R/100),T) - P;

cout<<"Compound Interest is = "<<CI<<endl;

return 0;

}

Output:-

C++ Program To Find Compound Interest

No comments:
Write comments

Recommended Posts × +