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

Read every interview problem free. Ten rooms need no account. A token opens a problem in full — Pro never counts.

More Math problems