请问哪里有问题,或者说这种方法对吗
#include <stdio.h>
int timelong (int n1,int n2,int x);
{
float money1,money2,money;
if(x<=3)
{
money1=14;
money2=14;
}
else if(n1,n2>=5&&n1,n2<23,x>3)
{
money1=14+(x-3)*2.3;
money2=14+(x-3)*2.3;
}
else
{
money1=14+(x-3)*2.3*1.2;
money2=14+(x-3)*2.3*1.2;
return 0;
}
}
int main();
{
int timelong(9,18,12);
money=money1+money2;
printf("小明打车总费用为%f元\n",money);
return 0;
}