哪出错了?
#include <stdio.h>
int Cost(int dis ,int tim)
{
int money;
if( km > 3 )
{
if(tim<5||tim>=23)
{ money = 13 + ( km - 3 ) * 2.3 * 1.2 + 1 ; }
else if
{ money = 13 + ( km - 3 ) * 2.3 + 1 ; }
else //
{ money = 14 ;}
}
return money;
}
int main()
{
int sum = Cost(12,9)+Cost(12,18) ;
printf("小明的路费为:%.2f元\n",sum);
return 0;
}