程序的問題
#include
int main() { ? ?int sale=120; //銷售業(yè)績?yōu)?20萬 ? ?int year=1; //剛剛進(jìn)入公司1年 ? ?//完善代碼 ? ?if(sale>100||year>=2) ? ?{ ? ? ? ? ? ? ? ? ? ? ? ? ?printf("恭喜你"); ? ? ? ? ? ?} ? ?else ? ?{ ? ? ? ?printf("很遺憾,期望你再接再厲"); ? ?} ? ? ? ? ? ? ? ? ? ? ? ? ?return 0; } 這樣不行嗎- -
2017-01-15
應(yīng)該用與的關(guān)系&&而不是或||