In this program, we are going to share how to calculate compound interest using C programming language. If you are a beginner and want to start learning the C programming, then keep your close attention in this tutorial as I am going to share a C program to calculate compound interest.
Copy the below C program and execute it with the help of C compiler. At the end of this program, We have shared the output of this program.
float principal, rate, year, ci;
printf("Enter principal: ");
printf("Enter rate: ");
printf("Enter time in years: ");
printf("Compound interest is: %f\n",ci);
Enter principal: 1000
Enter rate: 5
Enter time in years: 1
Compound interest is: 49.999954
Liked this program? Do Like & share with your friends 🙂
Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari View all posts by Editorial Staff
Tags: C program to calculate Compound Interest, compound interest formula, compound interest program, compound interest program in c, compound interest program in c using for loop, compound interest program in c using function, write an algorithm to calculate compound interest