#include <stdio.h>
#include <math.h>
int main()
{
float p, r, t, ci;
printf("Enter the principle :");
ci
= p
* pow((1 + r
/ 100), t
) - p
;
printf("\nThe compound interest is %0.2f", ci
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgppbnQgbWFpbigpCnsKICAgIGZsb2F0IHAsIHIsIHQsIGNpOwoKICAgIHByaW50ZigiRW50ZXIgdGhlIHByaW5jaXBsZSA6Iik7CiAgICBzY2FuZigiJWYiLCAmcCk7CiAgICBwcmludGYoIkVudGVyIHRoZSByYXRlIDoiKTsKICAgIHNjYW5mKCIlZiIsICZyKTsKICAgIHByaW50ZigiRW50ZXIgdGhlIHRpbWUgOiIpOwogICAgc2NhbmYoIiVmIiwgJnQpOwoKICAgIGNpID0gcCAqIHBvdygoMSArIHIgLyAxMDApLCB0KSAtIHA7CgogICAgcHJpbnRmKCJcblRoZSBjb21wb3VuZCBpbnRlcmVzdCBpcyAlMC4yZiIsIGNpKTsKCiAgICByZXR1cm4gMDsKfQ==