3-9练习题
int year = 2015;//年份 string text; text = ((year % 4) == 0 && (year % 100 != 0) || (year % 400 == 0)) ? "闰年" : "平年"; Console.Write("今年是{0}", text);
int year = 2015;//年份 string text; text = ((year % 4) == 0 && (year % 100 != 0) || (year % 400 == 0)) ? "闰年" : "平年"; Console.Write("今年是{0}", text);
2017-08-16
举报