我這里出啥問題了
請(qǐng)問,我這個(gè)哪里有問題。請(qǐng)指教!?
#include
int main()?
?{ ??
int sale=120; //銷售業(yè)績?yōu)?20萬 ??
int year=1; //剛剛進(jìn)入公司1年 ?
?//完善代碼 ??
if(sale > 100 && year >= 2) ?
{ ? ?
printf("%s\n","恭喜您獲得優(yōu)秀員工獎(jiǎng)"); ?
} ?
else ?
{ ? ?
printf("%s\n","很遺憾,期望你再接再厲"; ?
} ?
else ?
{ ? ?
printf("%s\n","很遺憾,期望你再接再厲"); ??
} ? ?
return 0;?
}
2015-10-29
if {...} else {...}
不能寫兩個(gè)else
2015-10-29
if{}?
else if{}
else{}