為什么不對呢
static void Main(string[] args) ? ? ? ?{ ? ? ? ? ? ?int year = 2015;//年份 ? ? ? ? ? ?string text;//請?zhí)顚懘a ? ? ? ? ? ?text= year%=4 ?"閏年":"平年"; ? ? ? ? ? ?Console.WriteLine("今年是{0}",text); ? ? ? ?}?
static void Main(string[] args) ? ? ? ?{ ? ? ? ? ? ?int year = 2015;//年份 ? ? ? ? ? ?string text;//請?zhí)顚懘a ? ? ? ? ? ?text= year%=4 ?"閏年":"平年"; ? ? ? ? ? ?Console.WriteLine("今年是{0}",text); ? ? ? ?}?
2016-11-20
舉報
2016-11-20
text=year%4==0 ?"閏年":"平年";這樣就是對的