Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- System.out.println(leapYearCount(400));
- }
- public static int leapYearCount(int year) {
- return (year / 4 - year / 100) + year / 400;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement