Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Loops-Continue/Ruby/loops-continue-1.rb
Normal file
8
Task/Loops-Continue/Ruby/loops-continue-1.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
for i in 1..10 do
|
||||
print i
|
||||
if i % 5 == 0 then
|
||||
puts
|
||||
next
|
||||
end
|
||||
print ', '
|
||||
end
|
||||
3
Task/Loops-Continue/Ruby/loops-continue-2.rb
Normal file
3
Task/Loops-Continue/Ruby/loops-continue-2.rb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(1..10).each do |i| ...
|
||||
1.upto(10) do |i| ...
|
||||
10.times do |n| i=n+1; ...
|
||||
1
Task/Loops-Continue/Ruby/loops-continue-3.rb
Normal file
1
Task/Loops-Continue/Ruby/loops-continue-3.rb
Normal file
|
|
@ -0,0 +1 @@
|
|||
(1..10).each_slice(5){|ar| puts ar.join(", ")}
|
||||
Loading…
Add table
Add a link
Reference in a new issue