帮我看看程序错在哪?
#include <stdio.h>
int getRent(n,time)
{
int money;
if(n<=3)
{
money=13+1;
}
if else(time>=23||time<5)
{
money=1.2*2.3*n+1;
}
else
{
money=2.3*n+1;
}
return money;
}
int main()
{
printf("小明每天上班打车需要%d元",getRent(12,9));
printf("小明每天上班打车需要%d元",getRent(12,18));
return 0;
}
错误提示:
In function 'getRent':
error: expected '(' before 'else'
warning: no newline at end of file