Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print 1to 10 number without using loop in python

def printno(upper):
    if(upper>0):
        printno(upper-1)
        print(upper)
upper=int(input("Enter upper limit: "))
printno(upper)
Source by www.sanfoundry.com #
 
PREVIOUS NEXT
Tagged: #print #number #loop #python
ADD COMMENT
Topic
Name
1+2 =