def countdown(num):
if num <= 0:
print('Blastoff!')
else:
print(num)
countdown(num-1)
def countup(num):
if num >=0:
print('Blastoff!')
else:
print(num)
countup(num+1)
n=int(input())
if n>0:
print(countdown(n))
elif n<0:
print(countup(n))
elif n==0:
print(countup(n))
Comments
Leave a comment