Guest User

Untitled

a guest
Feb 4th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. ("123456").split("").each_slice(3).to_a
  2. hey = array0.reduce(0) { |a, s| a + s.to_i }
  3. bye = array1.reduce(0) { |a, s| a + s.to_i }
  4. if hey == bye
  5. return true
  6. else return false
  7. end
Advertisement
Add Comment
Please, Sign In to add comment