Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Loops-Break/Ruby/loops-break-1.rb
Normal file
10
Task/Loops-Break/Ruby/loops-break-1.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
loop do
|
||||
a = rand(20)
|
||||
print a
|
||||
if a == 10
|
||||
puts
|
||||
break
|
||||
end
|
||||
b = rand(20)
|
||||
puts "\t#{b}"
|
||||
end
|
||||
5
Task/Loops-Break/Ruby/loops-break-2.rb
Normal file
5
Task/Loops-Break/Ruby/loops-break-2.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
loop do
|
||||
print a = rand(20)
|
||||
puts or break if a == 10
|
||||
puts "\t#{rand(20)}"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue