C Program to Calculate Compound Interest

C Program to Calculate Compound Interest

Below I shared C program to calculate compound interest. This C program takes the Amount of money that you have available to invest initially, Estimated annual interest rate and length of time, in years, that you plan to save.

Compound Interest formula

C program asks the user to enter the value of principle (amount of money), rate ( annual interest rate) and time (length of time) and calculates the compound interest using formula.
Compound Interest = Principle*pow((1+Rate/100),time)

Program to calculate compound interest

/*C Program to Calculate Compound Interest*/
int main()
float principle,rate,time,ci;
printf("Enter Principle, Rate and Time: ");
printf("Compound Interest = %f",ci);
return 0;


Enter Principle, Rate and Time:

Compound Interest = 11592.739258

Above you will get C program to calculate compound interest and if you have000 doubt please comment below.

If you have any doubts, Please let me know

Previous Post Next Post

Contact Form