Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Loops-While/Ruby/loops-while-1.rb
Normal file
5
Task/Loops-While/Ruby/loops-while-1.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
i = 1024
|
||||
while i > 0 do
|
||||
puts i
|
||||
i /= 2
|
||||
end
|
||||
2
Task/Loops-While/Ruby/loops-while-2.rb
Normal file
2
Task/Loops-While/Ruby/loops-while-2.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
puts i = 1024
|
||||
puts i /= 2 while i > 0
|
||||
5
Task/Loops-While/Ruby/loops-while-3.rb
Normal file
5
Task/Loops-While/Ruby/loops-while-3.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
i = 1024
|
||||
until i <= 0 do
|
||||
puts i
|
||||
i /= 2
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue