删除第//11行,第//14结果变了。
#include <stdio.h>//1
int main()//2
{//3
double money =12 ;//4
double cost =11.5 ;//5
printf("小编能不能打车回家呢:");//6
printf("%c\n",money>=cost?'y':'n');//7
printf("%c\n",(money>=cost)?'y':'n');//8
//9
printf("%c\n",(money>cost)||(money=cost)?'y':'n');//10
printf("%c\n",(money=cost)||(money>cost)?'y':'n');//11
printf("%c\n",((money>cost)||(money=cost))?'y':'n');//12
//13
printf("%c\n",(money>cost)&&(money=cost)?'y':'n');//14
printf("%c\n",(money=cost)&&(money>cost)?'y':'n');//15
printf("%c\n",((money>cost)&&(money=cost))?'y':'n');//16
//17
return 0;//18
}//19