Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

program in python to print first 10 natural number.

# Python Program to Print Natural Numbers from 1 to N
 
number = int(input("Please Enter any Number: "))

print("The First 10 Natural Numbers ".format(number)) 

for i in range(1, number + 1):
    print (i, end = '  ')
Source by www.tutorialgateway.org #
 
PREVIOUS NEXT
Tagged: #program #python #print #natural
ADD COMMENT
Topic
Name
8+4 =