一臉懵逼~
#include
int main() { ? ?int sale=120; //銷售業(yè)績?yōu)?20萬 ? ?int year=1; //剛剛進(jìn)入公司1年 ? ? ? ?if(sale>100&&year>2) { ? ?printf("sdfasdfsadf"); ? ?} ? ?else ? ? ?{ ? ? ? ?printf("很遺憾,期望你再接再厲"); ? ?} ? ?return 0; } 我這樣為什么不行?#include
int main() { ? ?int sale=120; //銷售業(yè)績?yōu)?20萬 ? ?int year=1; //剛剛進(jìn)入公司1年 ? ? ? ?if(sale>100&&year>2) { ? ?printf("sdfasdfsadf"); ? ?} ? ?else ? ? ?{ ? ? ? ?printf("很遺憾,期望你再接再厲"); ? ?} ? ?return 0; } 我這樣為什么不行?2017-04-18
舉報(bào)
2017-04-27
包括2年
2017-04-18
這個(gè)我做過 ? ?具體題目是啥我忘了 ? ? ?有可能是你的題意分析有了問題 ? 再不就是把判斷換成 if((sale>100)&&(year>2))?