ShriRam Changed status to publish July 15, 2022
#include<stdio.h>
void main()
{
float principle,rate,time,ci;
printf("Enter principle amount: ");
scanf("%f", &principle);
printf("Enter time in years: ");
scanf("%f", &time);
printf("Enter rate: ");
scanf("%f", &rate);
ci = principle* (pow((1 + rate / 100), time));
printf("Compound Interest = %f", ci);
getch();
}
ShriRam Changed status to publish July 15, 2022