細看錯誤在哪
#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","很遺憾,希望你再接再厲");
? ? ? ?}
? ? }
2018-10-05
int后面緊跟的第一個? {? 沒有成對的? }? 和它對應,你在最后加一個 } 就可以