Java Program – to check whether the number is odd or even.

Output: