# 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*/`

```
```

`#include<stdio.h>`

```
#include<math.h>
int main()
{
float principle,rate,time,ci;
printf("Enter Principle, Rate and Time: ");
scanf("%f%f%f",&principle,&rate,&time);
ci=principle*pow((1+rate/100),time);
printf("Compound Interest = %f",ci);
return 0;
}
```

## OUTPUT

Enter Principle, Rate and Time:

10000

3

5

Compound Interest = 11592.739258

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