Startup and Tech
Tuesday, 2 June 2020
Codeforces-4A(Watermelon) Solution in java
Program
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"); } }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment