C program to calculate compound interest

C program to calculate compound interest

#include<stdio.h>
#include<conio.h>
#include<math.h>

void main()
{
float p,r,t,ci;
clrscr();

printf(“Enter Principle, Rate and Time: “);
scanf(“%f%f%f”,&p,&r,&t);
ci=pow(p*(1+r/100),t);

printf(“Bank Loans Compound Interest = %f%”,ci);
getch();
}

Leave a Reply

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