看下哪里错了
#include<stdio.h>
#include<math.h>
int main()
{
double money,rate,year,interest,power;
scanf("%1f%1f%1f",&money,&year,&rate);
power=pow(1+rate,year);
printf("interest=%.2f*%.2f-%.2f",money,power,money);
return 0;
}
#include<stdio.h>
#include<math.h>
int main()
{
double money,rate,year,interest,power;
scanf("%1f%1f%1f",&money,&year,&rate);
power=pow(1+rate,year);
printf("interest=%.2f*%.2f-%.2f",money,power,money);
return 0;
}
2018-10-18
举报