2020-04-21

2020-04-21  本文已影响0人  Infinite_lfp

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}

上一篇 下一篇

猜你喜欢

热点阅读