Write a program to check if number is odd or even.

Description:-

The user entered number should identified whether its a odd or a even number. Mention its sign too.

Pr-requisites:-

1Arithmetic Operators

2. Nested if-else construct

Objective: –

To understand the concept of Nested if-else

Inputs: –

Integer ‘N’. 

Test Case 1:

Enter the value of ‘n’ : -2

-2 is negative even number

Test Case 2:

Enter the value of ‘n’ : 2

2 is positive even number

Test Case 3:

Enter the value of ‘n’ : 0

0 is neither odd nor even