来大神帮我看看哪里错了?指点一下!谢谢!
#include <stdio.h>
float feiyong(int time,int km)
{
float money;
if(km<=3)
{
money=28;
printf("来回车费为28元");
}
else
{
if(time>23||time<5)
{
money=(km-3)*(1.2*2.3)*2+28;
prinft("夜间来回的车费为%f元\n",money);
}
else
{
money=(km-3)*2.3*2+28;
printf("白天来回的车费为%f元\n",money);
}
}
return money;
}
int main()
{
int time,km;
printf("请输入出发的时间\n");
scanf("%d",&time);
printf("请输入行驶的里程\n");
scanf("%d",&km);
printf("请输入出发的时间是:%d\t行驶的里程是:%d\n",time,km);
printf("一天来回的车费是%.lf元\n",feiyong(time,km));
return 0;
}