logo image

Python program to print numbers from 1 to 10 using while loop

Views: 421

Following program shows you how to print numbers from 1 to 10 using while loop.

input = 1
while input <= 10:
	print(input)
	input += 1

Output:

1
2
3
4
5
6
7
8
9
10
We are looking for Interns!
Send your resumes to
[email protected]