#include <stdio.h>
#include <stdio.h>
double taxi(double j,double hs,double hx){
double m;
if(j<=3&&hx<=24&&hs>=0){
m=13+1;
}
if(j>3&&(hs>5&&hx<=23)){
m=13+(2.3*(j-3))+1;
}
if(j>3&&(hs<5&&hx>=23)){
m=13+(2.3*0.2*(j-3))+1;
}
printf("小明坐车需要%3f",m);
}
int main()
{
taxi(12,9,6);
return 0;
}
乱七八糟,看我主页不
命名不清晰