write a program to calculate the compound interest
Answers
Answered by
1
#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);
}
#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);
}
9Samridhirankawat1:
no I didn't understand
Similar questions