Advertisement
Guest User

Untitled

a guest
Jun 27th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class NurlanJava {
  3.     public static void main(String[] args){
  4.         Scanner sc = new Scanner(System.in);
  5.         int a = sc.nextInt();
  6.         if((a%4 == 0 && a%100 != 0) || (a%400 == 0)){
  7.             System.out.println("YES");
  8.         }
  9.         else{
  10.             System.out.println("NO");
  11.         }
  12.  
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement