通過的答案!
namespace Test { ? ?class Program ? ?{ ? ? ? ?static void Main(string[] args) ? ? ? ?{ ? ? ? ? ? ?int year = 2015;//年份 ? ? ? ? ? ?string text=(year%4==0)?"閏年":"平年";//請?zhí)顚懘a ? ? ? ? ? ?Console.WriteLine("今年是{0}",text); ? ? ? ?} ? ?} }?
?要注意輸入法 !??! ? 中文輸入法無法編譯?。?!
2016-02-15
Console.WriteLine("今年是{0}",text);的text的前面要加”+“號。