Skip to content

Instantly share code, notes, and snippets.

@BartoszCki BartoszCki/suma.rb
Created Jul 4, 2016

What would you like to do?
tab = []
10.times do
tab << rand(10)
puts tab
suma = 0
tab.each{|i| suma = suma+i}
puts suma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.