Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class NurlanJava {
- public static void main(String[] args){
- Scanner sc = new Scanner(System.in);
- int a = sc.nextInt();
- if((a%4 == 0 && a%100 != 0) || (a%400 == 0)){
- System.out.println("YES");
- }
- else{
- System.out.println("NO");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement