為什么運行成功,卻輸入錯誤了,求解
#include <stdio.h>
int main()
{
??? int sale=120;//銷售業績為120萬
??? int year=1; //剛剛進入公司1年
??? //完善代碼
??? if(sale>=100)
???
??? if(year>=2)
??? {
??? ?printf("%s\n","獲得優秀員工獎");
?}
?else
?{??
??? printf("%s\n","很遺憾,期望你再接再厲");
?}
???
??? return 0;
}
2018-03-21
因為根據條件,只進入了if(sale>=100)語句,并沒有輸出 “很遺憾,期望你再接再厲”