In this easy coded program, you will learn how to calculate compound interest by
taking input of principle amount, number of years and rate of interest
from user.
Try adding final calculated amount which will include the principle amount plus the calculated compound interest in this program for your self practice.

---------------------------------------------------------------------------
Output
Hope you found this 'C Program to Calculate Compound Interest' easy, simple and helpful!
Try to solve more queries by yourself by referring more examples from BEGINC. Here you will get the most easiest code to each and every query. Keep practicing. More programs are coming.
Try adding final calculated amount which will include the principle amount plus the calculated compound interest in this program for your self practice.

---------------------------------------------------------------------------
Program to Calculate Compound Interest
/*Compound Interest*/
|
#include<stdio.h>
|
#include<math.h>
|
void main()
|
{
|
float
p, n, r, ci;
|
printf("Enter
Principle Amount, No. of Years, Rate of Interest= ");
|
scanf("%f %f %f",
&p,
&n,
&r);
|
ci
=
p*pow(1+r/100,n);
|
printf("\nCompound Interest=
%f", ci);
|
}
|
Output
Enter Principle Amount, No. of Years, Rate of Interest= 1000 10 10
Compound Interest= 2593.742432
---------------------------------------------------------------------------Hope you found this 'C Program to Calculate Compound Interest' easy, simple and helpful!
Try to solve more queries by yourself by referring more examples from BEGINC. Here you will get the most easiest code to each and every query. Keep practicing. More programs are coming.
Comments
Post a Comment
Please do not comment any spam links in the comment box.