Skip to content
Open

Done #10

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions countdown.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
#write your code here

def countdown
end
def countdown(x)

while x > 0
puts "#{x} SECOND(S)!"
x -= 1
end
return "HAPPY NEW YEAR!"
end

def countdown_with_sleep(x)
while x > 0
sleep(1)
puts "#{x}"
x -= 1
end
end