Skip to content

Instantly share code, notes, and snippets.

@Jack-Saleem
Created January 15, 2016 13:05
Show Gist options
  • Save Jack-Saleem/64dbc90f2e11dbc291c9 to your computer and use it in GitHub Desktop.
Save Jack-Saleem/64dbc90f2e11dbc291c9 to your computer and use it in GitHub Desktop.
codeforces 4A Watermelon program in java
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