#include <stdio.h>
int main(){
int jour,fee;
printf("the milieage is taxi go:\n");
scanf("%d",&jour);
fee=(jour<3)?6:6+(jour-3)*2;
printf("the cost of get a taxi is %d\n",fee);
return 0;
}
#include <stdio.h>
int main(){
int jour,fee;
printf("the milieage is taxi go:\n");
scanf("%d",&jour);
fee=(jour<3)?6:6+(jour-3)*2;
printf("the cost of get a taxi is %d\n",fee);
return 0;
}
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。