Write a program to input n x m matrix and find the sum of all numbers
Write a program to input n x m matrix and find the sum of all numbers
4 views
1 Answers
def summat (a, m, n):
s = 0
for i in range (m):
for j in range (n):
s + = a[i][j]
return s
4 views
Answered