请各位看看我的小程序哪不对。。
#include<stdio.h>
int taxi(int distance,int hour)
{
int money;
if(hour<=5 || hour>=23);
{
money=(distance-3)*2.3*1.2+1+13;
return money;
}
else
{
money=(distance-3)*2.3+1+13;
return money;
}
}
int main()
{
int money;
int moneyInAll=taxi(12,24)+taxi(12,7);
printf("%d\n",money);
return 0;
}