Problem

Return integer average of arr.

Examples

  • arrayAvg([10, 20]) -> 15
  • arrayAvg([]) -> 0
Compile and test (Ctrl+Enter)