C Program to Calculate Compound Interest

Here you will get a C program to compute progressive accrual.

The program solicits client to enter an incentive from guideline (p), rate (r) and time (t) lastly figure the accumulated dividends by the following the recipe.

Accumulated dividends = Principle * (1 + Rate/100) time

#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

DURGESH

I Love python, so I like machine learning a Lot and on the other hand, I like building apps and fun games I post blogs on my website for Tech enthusiast to learn and Share Information With The World.

Leave a Reply

Your email address will not be published. Required fields are marked *

7 − five =

Recent Content