Answer to Question #348119 in Python for uppi

Question #348119

write a program to print numbers from 1 to n in each row forming a rectangular pattern of m rows and n columns using numbers


1
Expert's answer
2022-06-06T08:57:33-0400
n = int(input('n= '))
for i in range(n):
    for i in range(n):
        print(i+1, end=' ')
    print()

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS