#include <stdio.h>
#include <math.h>
int main(void) {
float principal
,time,rate
; printf("welcome to the interest calculater\n"); printf("\n please enter principal: "); printf("\n Now enter time: "); printf("\n Now enter rate: ");
float interest
=principal
*pow((1+rate
/100),time); printf("\n the interest rate is %f",interest
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CmludCBtYWluKHZvaWQpIHsKCWZsb2F0IHByaW5jaXBhbCx0aW1lLHJhdGU7CglwcmludGYoIndlbGNvbWUgdG8gdGhlIGludGVyZXN0IGNhbGN1bGF0ZXJcbiIpOwoJcHJpbnRmKCJcbiBwbGVhc2UgZW50ZXIgcHJpbmNpcGFsOiAiKTsKCXNjYW5mKCIlZiIsJnByaW5jaXBhbCk7CglwcmludGYoIlxuIE5vdyBlbnRlciB0aW1lOiAiKTsKCXNjYW5mKCIlZiIsJnRpbWUpOwoJcHJpbnRmKCJcbiBOb3cgZW50ZXIgcmF0ZTogIik7CglzY2FuZigiJWYiLCZyYXRlKTsKCmZsb2F0IGludGVyZXN0PXByaW5jaXBhbCpwb3coKDErcmF0ZS8xMDApLHRpbWUpOwpwcmludGYoIlxuIHRoZSBpbnRlcmVzdCByYXRlIGlzICVmIixpbnRlcmVzdCk7CgoJCglyZXR1cm4gMDsKfQo=