+ 8

# [Challenge] sum of the matrix..

I don't know about the other challenge posts related to this are there if exist please tell me I'll delete this. Challenge is sum of matrix 1st matrix 1 2 3 4 5 6 2nd matrix 2 5 1 2 1 1 sum is 3 7 4 6 6 7 I hope you are understand. post codes here.......

4 Answers

+ 5

my try in java :
https://code.sololearn.com/cSKHysm8SIhS/?ref=app

+ 1

My program in C
https://code.sololearn.com/caSkpRNYpvZE/?ref=app

0

Thanks for the fun challenge.
Here is my try in Python:
I changed it so that it would work with any size of matrix.
First enter number of rows
next enter the rows of the the matrices.
Example
2 number of rows
1;2;3 first matrix
2;3;4
5;6;7 second matrix
8;3;9
The sum will appear.
https://code.sololearn.com/cFKqsdmLY8Z7/?ref=app