為什么會輸出錯誤,標點也都試了
#include <stdio.h>
int main()?
{
? ? int sale=120; //銷售業績為120萬
? ? int year=1; //剛剛進入公司1年
? ? //完善代碼
? ? if (sale>100)
? ? ?{
? ? ? ? ? if(year>=2)
? ? ? ? ?{
? ? ? ? ? ? ?printf("你已具備獲得優秀員工獎的資格");
? ? ? ? ?}
? ? ? ? ? else
? ? ? ? ? {
? ? ? ? ? ? ? printf("很遺憾,期待你再接再厲");
? ? ? ? ? }? ? ??
? ? ?}
? ? else
? ? ?{
? ? ? ? ?printf("很遺憾,期待你再接再厲");
? ? ?}
? ? return 0;
}
2019-09-21
題目都幫你找來了
運行結果為: 很遺憾,期望你再接再厲?
讓輸出的是期望不是期待