Python program to print natural numbers from 1 to n numbers using while loop

8745
Python program to print natural numbers from 1 to n numbers using while loop
num = int(input("Please Enter any Number: "))
i = 1
print("Natural Numbers from 1 to {0} are".format(num))
while (i <= num):
 print (i, end = ' ')
 i = i + 1

       Output:
              Please Enter any Number: 11
              Natural Numbers from 1 to 11 are
              1 2 3 4 5 6 7 8 9 10 11

इन्हें भी देखें।

Python Programs के लिये यहाँ click करें।

 

 

Python program to print natural numbers from 1 to n numbers using while loop Python program to print natural numbers from 1 to n numbers write a program to print natural numbers from 1 to n numbers using while loop in python program to print natural numbers from 1 to n numbers natural number program natural number program in python program to print natural numbers from 1 to n program to print all natural numbers from 1 to n using while loop