pastebin

Paste Search Dynamic
Recent pastes
arr
  1. # your code goes here
  2. arr = [1, 3, 5, 6, 9]
  3. len = arr.length / 2
  4. for i in 0..len
  5.         other = arr[arr.length - i - 1]
  6.         temp = arr[i]
  7.         arr[i] = other
  8.         arr[arr.length - i - 1] = temp
  9. end
  10.  
  11. p arr
Parsed in 0.003 seconds