How can we find the Compound Interest? We can do it by applying the following formula, Compound Interest = Principal Amount * ( 1 + Rate of Interest )Number of years )

#### Compound Interest using C++ :

```
#include <iostream>
using namespace std;
int main()
{
int p, n, r, ci;
cout << "Please Enter the Principal Amount : ";
cin >> p;
cout << "Please Enter the Rate Of Interest : ";
cin >> r;
cout << "Please Enter Time period in Years : ";
cin >> n;
ci=p*((1+r/100)^n-1);
cout << "Compound Interest is : " << ci;
return 0;
}
```

## 0 comments:

## Post a Comment

Share your post related problems with us.