MENU
Question -

Write a program to input n x m matrix and find the sum of all numbers.



Answer -

def summat (a, m, n):
s = 0
for i in range (m):
for j in range (n):
s + = a[i][j]
return s

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×