recursion 1 to N
Python
def num(n):
if n > 0:
num(n-1)
print(n)
num(10)
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Python
def num(n):
if n > 0:
num(n-1)
print(n)
num(10)
Embed on website
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.