How to write a C program to calculate Compound interest with example code. Before we get into the C program to calculate Compound interest example, let us understand the mathematical formula to calculate Compound interest,
Below C program allows the user to enter the “principal amount”, “rate of interest”, and the “number of years”. We will calculate compound interest by using entered values with the help of above mentioned simple compound formula.
Please enter the Principal Amount: = 1000
Please Enter Rate Of Interest : = 8.85
Please Enter the Time Period in Years: = 2
Simple Interest for Principal Amount 1000.00 is = 184.83