答案是68吗?
#include <stdio.h>
int day(int mile)
{
float a;
if(mile<=3)return a=13+1;
else {a=(mile-3)*2.3+13+1;return a;}
}
int night(int mile)
{
float a;
if(mile<=3)return 13+1;
else {a=(mile-3)*2.3*1.2+13+1;return a;}
}
void Sum_out(float s){printf("一天总共花费%f",s);}
int main()
{
float sum;
sum=day(12)+day(12);
Sum_out(sum);
return 0;
}