mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-03-14 05:06:55 +01:00
10 lines
281 B
Python
10 lines
281 B
Python
def ft_count_harvest_recursive(x: int = -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)
|