Instantly share code, notes, and snippets.
numbers = [1,2,3] total = 0 numbers.each do |number| total += number end p total