Check Even Partitioning

Given a number n, check whether the number can be the sum of two even numbers or not. Return true if it can be, return false otherwise.

Constraints :

** 1 <= n <= 100000**

Input Format : Integer n

Output Format : YES or NO

Sample Input 1 :
8
Sample Output 1 :
YES
Sample Input 2 :
9
Sample Output2 :
NO

Comments

Popular posts from this blog

How to pass parameters in webhook?

Access and modify all the resources of our Wiki.js using WikiJS API

Fahrenheit to Celsius