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

Core interview problems are free with a full runner and lessons; Pro opens the complete library.

More Math problems