50. Python Program to Display 1 to 99 numbers in 5 Rows Sequentially.
How does this program work?
- In this program we are going to learn about how to display 1to 99 numbers in 5 rows sequentially using Python.
- In this program we are using for loop to display numbers.
- And 'if' condition is used to print 5 numbers on each line sequentially.
Here is the code
i = 0
#To print 1 to 99 numbers
for i in range(99):
i+=1
#To print 5 numbers on each line
if i % 5 == 0:
print("\t")
print(i, end=' ')
![SkillPundit: Python Program To Display 1to 99 numbers in 5 Rows Sequentially To display 1to 99 numbers in 5 rows sequentially SkillPundit](img/SkillPundit-python-display-100-numbers-5-rows-sequentially.jpg)
![](img/add1.png)