2018-10-31作业二

2018-10-31  本文已影响0人  拖鞋大王

Console.WriteLine("请输入年份");

int year = Convert.ToInt32(Console.ReadLine());

bool b = year % 400 == 0 || year % 4 == 0 && year % 100 != 0;

Console.WriteLine(b);

Console.ReadKey();

2018-10-31作业二 2018-10-31作业二
上一篇 下一篇

猜你喜欢

热点阅读