Problem

Return n % 10 (remainder when dividing by 10).

Examples

  • modTen(123) -> 3
  • modTen(40) -> 0
Compile and test (Ctrl+Enter)