#include <stdio.h>#include <math.h>int main(void){int money, year;double interest, rate;scanf("%d,%d,&ld",&money,&year,&rate);interest=money*power((1+rate),year);printf("interest = %.2f\n", interest);return 0;}
相关分类