//利息//
#include<stdio.h>
#include<math.h>
int main()
{
double money,year,rate;
double interest;
scanf("%lf %lf %lf",&money,&year,&rate);
interest=money*pow(1+rate,year)-money;
printf("interest = %.2f",interest);
return 0;
}
C语言——利息问题
于 2023-05-22 11:02:26 首次发布