Skip to content

Commit 34b6b32

Browse files
committed
small changes on beer song
1 parent c3bc449 commit 34b6b32

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
.idea/
3+

Flow Control/ex_99_bottles_of_beer.rb

+16
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,19 @@
2727
end
2828

2929
end
30+
31+
32+
33+
34+
=begin
35+
def refrain(num)
36+
puts "#{num} bottles of beer on the wall, #{num} bottles of beer."
37+
puts "Take one down and pass it around, #{num - 1} bottles of beer on the wall."
38+
end
39+
40+
number = 10
41+
while number > 1 do
42+
refrain(number)
43+
number -= 1
44+
end
45+
=end

0 commit comments

Comments
 (0)