← Unit 2 · all exercises
Saved in this browser only

Even or odd, in words

Return the word "even" or the word "odd" for the number given.

String describe(int n)

Solution.java
Loading editor…
Results

Examples

  • describe(4) → even
  • describe(7) → odd

There are also 3 hidden tests you can't see. Solve the problem, not the examples.