第四次作业2
2018-10-31 本文已影响0人
zealot_bbc8
Console.WriteLine("请输入一个年份");
int year = Convert.ToInt32(Console.ReadLine());
bool b = (year % 400==0)||(year % 4 == 0 && year % 100!=0);
Console .WriteLine (b);
Console .ReadKey ();
Console.WriteLine("请输入一个年份");
int year = Convert.ToInt32(Console.ReadLine());
bool b = (year % 400==0)||(year % 4 == 0 && year % 100!=0);
Console .WriteLine (b);
Console .ReadKey ();