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