Problem 2 :
In this problem you will learn how to check whether a number entered by the user is even or odd. This problem is solved using if…else statement.