Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. public class Main {
  2.     public static void main(String[] args) {
  3.         System.out.println(leapYearCount(400));
  4.     }
  5.  
  6.     public static int leapYearCount(int year) {
  7.         return (year / 4 - year / 100) + year / 400;
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement