不明白為什么不對
#include <stdio.h>
int main()?
{
? ? int sale=120; //銷售業績為120萬
? ? int year=1; //剛剛進入公司1年
? ? //完善代碼
? ? if(sale>100)
? ? {
? ? ? ? if(year>=2)
? ? ? ? {
? ? ? ? ? ? printf("you can do it !");
? ? ? ? }
? ? ? ? else(year<2)
? ? ? ? {
? ? ? ? ? ? printf("sorry,please hard!");
? ? ? ? }
? ? }
? ? else(sale<100)
? ? {
? ? ? ? printf("很遺憾,期望你再接再厲");
? ? }
? ??
? ??
? ??
? ??
? ??
? ??
? ??
? ??
? ??
? ??
? ??
? ? return 0;
}
2017-12-06
對,把兩個else后面括號和括號里面的東西都刪了應該就行了。
2017-12-06
把else后面括號里的東西刪掉試一下