#include <stdio.h>
#include <math.h>
int main()
{
float principle=1200, rate=2, time=5.4 , CI;
/* Calculate compound interest */
CI = principle* (pow((1 + rate / 100), time));
/* Print the resultant CI */
printf("Compound Interest = %f", CI);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: