Created
January 15, 2016 13:05
-
-
Save Jack-Saleem/64dbc90f2e11dbc291c9 to your computer and use it in GitHub Desktop.
codeforces 4A Watermelon program in java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Watermelon | |
{ | |
public static void main(String[] args) | |
{ | |
int w; | |
Scanner input = new Scanner(System.in); | |
w=input.nextInt(); | |
if(w>2) | |
{ | |
if((w%2)==0) | |
System.out.println("YES"); | |
else | |
System.out.println("NO"); | |
} | |
else | |
System.out.println("NO"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment