Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,4 +1,3 @@
|
|||
srand
|
||||
ary = (1..20).to_a.shuffle.each_slice(4).to_a
|
||||
p ary
|
||||
|
||||
8
Task/Loops-Nested/Ruby/loops-nested-2.rb
Normal file
8
Task/Loops-Nested/Ruby/loops-nested-2.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
slices = (1..20).to_a.shuffle.each_slice(4)
|
||||
|
||||
slices.any? do |slice|
|
||||
slice.any? do |element|
|
||||
puts element
|
||||
element == 20
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue