#include <stdio.h>
#include <math.h>
int main() {
float principal, rate, time, CI;
printf("Enter principal (Principal Amount): $_________\n\n");
scanf("%f", &principal);
printf("Enter rate (Interest Amount): _______");
scanf("%f", &rate);
printf("%%\n\n");
printf("Enter time (Length Of Loan): _______years\n\n\n");
scanf("%f", &time);
CI = principal * pow(1 + rate / 100, time);
printf("Compound Intertest = %f\n", CI);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: