diff --git a/countdown.rb b/countdown.rb index 9c36eba..4e3c59d 100644 --- a/countdown.rb +++ b/countdown.rb @@ -1,4 +1,14 @@ -#write your code here -def countdown +def countdown_with_sleep + + x = 0 + while x < 10 + + puts "#{x} is less than 10" + until.time.now + sleep 1 seconds until time.now +puts = phrase + +phrase = "HAPPY NEW YEAR!" + end