Odd or even
Given an integer, your task is to determine if it’s odd or even.
The program should print
The number <NUMBER> is <odd/even>
, where the <NUMBER>
is the inputted number and <odd/even>
should be either odd
or even
.Input | Output |
10 | The number 10 is even |
7 | The number 7 is odd |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB