Python program to print the numbers from a given number n till 0 using recursion
Python program to print the numbers from a given number n till 0 using recursion
def print_till_zero(n):
if (n==0):
return
print(n)
n=n-1
print_till_zero(n)
print_till_zero(8)
Comments
Post a Comment