Answer to Question #306387 in Python for Asram

Question #306387

the first line contains an integer n denoting the number of rows in A. the next line contains an integer ,M, denoting the number of columns in A. Each line i of the N subsequent line (where 0<=i< N) comtains M space seperated integers each :describing the ith row of A

1
Expert's answer
2022-03-07T12:55:52-0500
n = int(input('Enter no of rows here: '))
M = int(input('Enter no of columns here: '))
j = 0
for i in range(n):
    for k in range(M):
        j = j + 1
        print(j, 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