請(qǐng)問大家哪里出了錯(cuò),看了好久都沒發(fā)現(xiàn)問題
#include <stdio.h>
int main()?
{
? ? int sale=120; //銷售業(yè)績?yōu)?20萬
? ? int year=1; //剛剛進(jìn)入公司1年
? ? if(sale>100)
? ? { if(year>=2)
? ? ?{
? ? ? ? printf("%s\n","優(yōu)秀員工");
? ? ?}
? ? ?else
? ? ?{
? ? ? ? ?printf("%s\n","很遺憾,期望你再接再厲");
? ? ?}
? ? ? ??
? ? ?
? ? ? ??
? ? }//完善代碼
? ? else
? ? {
? ? ? ? printf("很遺憾,期望你再接再厲");
? ? }
? ? return 0;
}
2018-11-26
分號(hào)是中文的分號(hào),改為英文的就可以了