RosettaCodeData/Task/Loops-Break/Ruby/loops-break.rb

10 lines
105 B
Ruby

loop do
a = rand(20)
puts a
if a == 10
break
end
b = rand(20)
puts b
end