Python program to print number from 1 to 100 in intervals of 10 in vertical

 

Write a program to print 1 to 100

1 2 3 4 5 6 7 8 9 10
11 12.....................20
21 22 ...................... 30
..... 
.. 
.. 
.. 
91 92        ................................... 10




num=10

for  i in range(1,num+1):

    for j in range(i,i+1):

        for m in range(1,11):

            print(j*m,end=" ")

    print()

Python program to print number from 1 to 100 in intervals of 10 in vertical  Python program to print number from 1 to 100 in intervals of 10 in vertical Reviewed by Shubham Prajapati on February 10, 2021 Rating: 5

No comments:

If you have any doubt so you can comment me then i will 100% help you ,Through comment Chat

Powered by Blogger.