C Tutorial - C program to calculate compound interest

Опубликовано: 01 Июль 2025
на канале: Priyanka Jamdar
3,886
21

This program will read principal, rate and time in years and then print compound interest on entered principal for given time period.

Compound interest is the amount in which interest is added into the principle so that interest also can be earned interest with the principle.

The formula to get compound interest is:
compound_interest=principal*((1+rate/100)time-1)