Here you will get C++ program to find compound interest.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#include<iostream> #include<math.h> using namespace std; int main() { float p,r,t,ci; cout<<"Enter Principle, Rate and Time:\n"; cin>>p>>r>>t; ci=p*pow((1+r/100),t); cout<<"\nCompound Interest = "<<ci; return 0; } |

**Output**

*Enter Principle, Rate and Time:*

*1000*

*2*

*4*

*Compound Interest = 1082.43*

suryadoesn’t work

Shreoshreewell, sorry to say but ur formula is wrong…. ‘t’ is not an exponent of ‘p’…. we hav 2 take ‘p’ out side the pow function… hope u make necessary changes:)

Ashish Shukla11. Write C++ program to calculate the simple compound interest with necessary exception handling functions.(Consider 3 input parameters Amt, Time, Interest Rate, And output should be the total Amount after compounding. Program should give Exception message when input is not proper E.g. 3 12 only 2 parameter passed if, the Exception raised should be handled asking user to re-enter the input.)

PunitI’m not satisfied by your program beacause ypur formula is wrong….

I hope you understand what I’m want to say….

You will be change this necessary………..

SAMBIT SWORUP RoutWAP a function to find the compound interest for the principal amount, no. of years and rate of interest entered by the user. Take rate of interest defaulted to 0.50 in case this value is not entered by user.

Please solve this sambit Sworup Rout

philoyour programme is not working well

go through it and make necessary corrections.

kavin chandarSUBTRACT YOUR PRINCIPLE VALUE FROM THE COMPOUND INTEREST FORMULAE