有大佬检查下对不对吗
#include<stdio.h>
double danjia=2.3;
double sum;
double gong;
int dache(int sj,int juli){
if(sj>=5&&sj<23&&juli>3){
sum=(juli-3)*2.3+13+1;
if(juli<=3){
sum=13+1;
}
}
else{
sum=13+1;
if(juli>3){
sum=(juli-3)*(2.3*1.2)+13+1;
}
}
return sum;
}
int main(){
gong=dache(9,12)+dache(18,12);
printf("小明每天打车费用:%f",gong);
return 0;
}