正确答案 int year = 2015;//年份 string text ; text = year %4 ==0 ?"闰年":"平年";//请填写代码 Console.WriteLine("今年是{0}",text);
int year = 2017; string text; text = year % 4 == 0?"闰年":"平年"; Console.WriteLine("今年是{0}",text);