mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-01-27 09:11:57 +00:00
10 lines
274 B
Python
10 lines
274 B
Python
def ft_count_harvest_recursive(x=-1):
|
|
if x < 0:
|
|
print("Days until harvest:", end=" ")
|
|
x = int(input())
|
|
ft_count_harvest_recursive(x)
|
|
print("Harvest time!")
|
|
elif x > 0:
|
|
ft_count_harvest_recursive(x - 1)
|
|
print("Day", x)
|