Problem

Return the absolute value of an int (do not use Math.abs).

Examples

  • absValue(-7) -> 7
  • absValue(4) -> 4
  • absValue(0) -> 0
Compile and test (Ctrl+Enter)