哪有問題?
#include <stdio.h>
int main()?
{
? ? int sale=120; //銷售業(yè)績?yōu)?20萬
? ? int year=1; //剛剛進入公司1年
? ? //完善代碼
? ? if(sale>100)
? ? ? {
? ? ? ? ? ?if(year>=2)
? ? ? ? ? ? ?{
? ? ? ? ? ? ? ? ?printf("%s\n","恭喜你獲得優(yōu)秀員工獎");
? ? ? ? ? ? ?}
? ? ? ? ? ? else
? ? ? ? ? ? {
? ? ? ? ? ? ? ? printf("%s\n","很遺憾,期望你再接再厲");
? ? ? ? ? ? }
? ? ? }
? ??
? ??
? ??
? ??
? ??
? ??
? ??
? ??
? ??
? ??
? ??
? ??
? ??
? ? return 0;
}
2017-03-03
語句并沒有錯, 但與第一個if 相對應的else 應寫在最后,但你沒寫。 ? ? 望采納
2016-12-11
沒問題