Problem

Return the distance between (x1, y1) and (x2, y2) as an int: sqrt omitted — return (x2-x1)^2 + (y2-y1)^2.

Examples

  • distance(0, 0, 3, 4) -> 25
  • distance(1, 1, 1, 1) -> 0
Compile and test (Ctrl+Enter)