為什么運行成功,輸出錯誤?
#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;
}
2017-10-20
因為他要求格式要一樣
即 很遺憾,期(希)望你再接再厲。
運行成功說明你代碼敲對了。