# Calculate Compound Interest C Program

## C Program To Calculate Compound Interest

Learn How To Write A Program To Calculate Compound Interest in C Programming Language. This C Program To Find Compound Interest takes in values of Principal Amount, ROI and Time Period from the User.

#### What is Compound Interest?

Compound Interest is the interest computed on the initial principal amount and also on the accumulated interest of previous periods of a deposit or a loan.

#### Formula To Find Compound Interest

a = p (1 + r/n) nt

where,

a = value of the returns

p = Principal Amount

r = Rate of Interest

n = Number of times that Interest is compounded each year

t = Number of Years (Period)

#### Output

p = ₹ 5000

r = 10%

n = 12

t = 5

Compound Interest = ₹ 8226.54

Must Read: C Program To Find Simple Interest using Functions

#### Method 2: Calculate Compound Interest in C Programming using Function

Must Read: C Program To Find LCM of Two Numbers

#### Output

If you have any doubts or compilation errors in this C Program To Compute Compound Interest, let us know about it in the comment section below.

#### Tushar Soni

I am Tushar Soni, Co - Founder of CodingAlpha. I am a computer science student from India and passionate about Web Development and Programming. Connect with me on Facebook | LinkedIn | Google Plus

### 5 thoughts on “Calculate Compound Interest C Program”

• August 9, 2016 at 11:16 pm

Thanks for this awesome code. But, when I try this Compound Interest C Program in Windows, it works fine. But, in Linux it gives an errof regarding the pow() method. Please help.

• August 21, 2016 at 11:56 am

Amazingly simple program for compound interest. Thanks