Easy · Math

Is odd number

Given an integer n, which may be negative, return true if n is odd and false if it is even.

Examples

Example 1

n = 7

Output: odd

Example 2

n = 12

Output: even

Rebuild it in the studio

Open every published interview problem, solution, scene, and memory room free, with no account.

More Math problems