Watermelon, Codeforces Solution, codeforces solutions 4A, Solution Of Watermelon, watermelon solution, watermelon source code, Watermelon solution in Java
YouTube video link : click here Question link : click here
Solution : in Java
import java.util.Scanner;
public class Watermelon {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int weight = sc.nextInt();
if(weight%2==0){
if(weight == 2){
System.out.println("NO");
}
else{
System.out.println("YES");
}
}
else{
System.out.println("NO");
}
}
}
Solution video
______________________________________________
Thanks for visiting
0 Comments