大佬們看看哪錯了
#include <stdio.h>
int main()
{
??? int sale=120; //銷售業(yè)績?yōu)?20萬
??? int year=1; //剛剛進入公司1年
??? //完善代碼
??? if(sale>100)
??? {
??????? if(year>=2)
??????? {
??????????? printf("獲得優(yōu)秀員工獎勵");
??????? }
??? }
??? else
??? {
??????? printf("很遺憾,期望你再接再厲");
??? }
???
???
??? return 0;
}
2019-11-01
應該是else的地方不對? 應該在year=2的那個循環(huán)里