diff --git a/countdown.rb b/countdown.rb index 9c36eba..f70dc39 100644 --- a/countdown.rb +++ b/countdown.rb @@ -1,4 +1,32 @@ #write your code here -def countdown +def countdown(number) + number = 10 + while number > 0 + puts "#{number} SECOND(S)!" + number -= 1 + end + "HAPPY NEW YEAR!" end + +def countdown_with_sleep(sleep) + number = 10 + while number > 0 + puts "#{number} SECOND(S)!" + number -= 1 + end + sleep(5) +"HAPPY NEW YEAR!" +end + + + + + + + + + + + +