美文网首页
第四次作业2

第四次作业2

作者: zealot_bbc8 | 来源:发表于2018-10-31 14:42 被阅读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 ();

相关文章

网友评论

      本文标题:第四次作业2

      本文链接:https://www.haomeiwen.com/subject/afjatqtx.html