這沒錯啊,為什么不通過
? ? ? ? ? ? int year = 2015;//年份
? ? ? ? ? ? string text;
? ? ? ? ? ? text=year%4==0?"閏年":"平年";//請填寫代碼
? ? ? ? ? ? Console.WriteLine("今年是{0}",text);
? ? ? ? ? ? Console.ReadLine();
? ? ? ? ? ? int year = 2015;//年份
? ? ? ? ? ? string text;
? ? ? ? ? ? text=year%4==0?"閏年":"平年";//請填寫代碼
? ? ? ? ? ? Console.WriteLine("今年是{0}",text);
? ? ? ? ? ? Console.ReadLine();
2022-05-10
舉報
2023-05-10
//是不是多了最后一句ReadLine? static?void?Main(string[]?args) ????????{ ????????????int?year?=?2015;//年份 ????????????string?text?=?year%4==0?"閏年":"平年";//請填寫代碼 ????????????Console.WriteLine("今年是{0}",text); ????????}2022-07-22
?號 要兩邊空格隔開
2022-05-11
分號是英文