首页上一页 1 下一页尾页 1 条记录 1/1页
1974年是闰年,怎么按照程序写出来不是?
发表在C#视频课程答疑
2021-01-19
是否精华
是
否
版块置顶:
是
否
if (iyear%4==0)
{
if(iyear%100==0)
{
if(iyear%400==0)
{
console. writeline("this leap year");
}
else
{
console. writeline("it's not a leap year'");
}
}
else
{
console. writeline("this leap year");
}
}
else
{
console. writeline("iit's not a leap year'");
}
console. readline();
{
if(iyear%100==0)
{
if(iyear%400==0)
{
console. writeline("this leap year");
}
else
{
console. writeline("it's not a leap year'");
}
}
else
{
console. writeline("this leap year");
}
}
else
{
console. writeline("iit's not a leap year'");
}
console. readline();