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
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()
Comments
Leave a comment