C-Program to calculate simple and compound interest

Sample Input
Enter the value of Principal p = 1000
Enter the value of Rate r = 12
Enter the value of Period in year n = 2
Sample Output
Simple Interest SI=240.000000
Compound Interest CI=254.400009

You may also like...

  • Ashish Shukla

    11. 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.)