1publicclassLeapYear{2publicstaticvoidmain(Stringargs[])3{4intyear=2016;5if((year%4==0&&year%100!=0)||6(year%400==0)){7System.out.println(year+" is a leap year.");8}9else{10System.out.println(year+" is not a leap year.");11}12}13}
1publicclassLeapYear{2publicstaticvoidmain(Stringargs[])3{4intyear=2016;5if((year%4==0&&year%100!=0)||6(year%400==0)){7System.out.println(year+" is a leap year.");8}9else{10System.out.println(year+" is not a leap year.");11}12}13}
本文标题:2020-04-21
本文链接:https://www.haomeiwen.com/subject/ktxuihtx.html
网友评论