image2text

Untitled

Aug 1st, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. s
  2. SR TR R LI E )
  3. e )
  4. 7 array.each_with_index do |item, index|
  5. [ sum += item if index.odd?
  6. R
  7. EURE)
  8. FE Y
  9. 12
  10. 13 # TODO: computes the sum of elements at odd indexes (1, 3, 5, 7, etc.)
  11. 31 B You should use Enumerable#each_with_index
  12. 15
Advertisement
Add Comment
Please, Sign In to add comment