運(yùn)行成功,輸出錯(cuò)誤
#include <stdio.h>
int main()?
{
int sale=120; //銷售業(yè)績(jī)?yōu)?20萬(wàn)
int year=1; //剛剛進(jìn)入公司1年
? ? //完善代碼
if(sale>100)
{
? ? if(year>=2)
? ? {
? ? ? ? printf("獲得獎(jiǎng)勵(lì)");
? ? }
? ? else
? ? {
? ? printf("很遺憾,期望你再接再厲");
? ? }?
}? ??
else
{
? ? printf("很遺憾,你不符合資格");
}
? ? return 0;
}
2019-08-12
printf("很遺憾,期望你再接再厲"); 這里的逗號(hào)換成全角的就對(duì)了。其實(shí)沒(méi)關(guān)系的,無(wú)傷大雅。