Here you will get C program to calculate compound interest.

The program asks user to enter value of principle (p), rate (r) and time (t) and finally calculates the compound interest by following formula.

Compound Interest = Principle * (1 + Rate / 100) ^{time}

## C Program to Calculate Compound Interest

1 2 3 4 5 6 7 8 9 10 11 12 |
#include<stdio.h> #include<math.h> void main() { float p,r,t,ci; printf("Enter Principle, Rate and Time: "); scanf("%f%f%f",&p,&r,&t); ci=p*pow((1+r/100),t); printf("Bank Loans Compound Interest = %f%",ci); } |

**Output**

*Enter Principle, Rate and Time: 2000*

*2*

*3*

*Bank Loans Compound Interest = 2122.415771*

RoshanIs pow is imp in this program. What is pow ??

Aaron ODonnellPower of t

Mayank Agrawalyou can do it without pow() function which is a function of math.h library. link is given below.

https://ide.geeksforgeeks.org/a3RbQ2SmP8

Mayank Agrawalhttps://ide.geeksforgeeks.org/a3RbQ2SmP8

for who don’t want to use math.h library

Shiva sharmaIf questions require some calculation

Subrahmanya hjPower of t

SandeepRight. Programming

Peter Golani RobertThis program is very good and helpful enough for banking,i beg you to send me a prigram of the same type but that divide money into dollar portion and cent portion

thanks

SoniyaPower yes its imp

RashBut what is calculated is amount and not compound interest.