编译总是过不了,帮忙看看哪里有问题?拜谢
#include <stdio.h>int main()
{
double n;
double lastmoney;
printf("请输入你要存款的金额:\n");
scanf("%f",&n);
double money(double x);
double lastmoney=money(n);
printf("本息为:%.1f",lastmoney);
return 0;
}
double money(double x)
{
double lastmoney=x+x*3.10/100/12*3;
return lastmoney;
}