美文网首页
2018-10-31第二题

2018-10-31第二题

作者: 额丶丶丶 | 来源:发表于2018-10-31 14:48 被阅读0次


效果

2018-10-31第二题

代码

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

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

bool a=nf % 400==0 || nf % 4 == 0 && nf % 100 !=0;//判定

Console.WriteLine(a);输出

Console.ReadKey();

相关文章

网友评论

      本文标题:2018-10-31第二题

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