0

Where I did wrong

Can any one give a hint https://code.sololearn.com/c5Ie8Xm2ggJ6/?ref=app

28th Sep 2020, 5:32 PM
Bharadwaj
Bharadwaj - avatar
1 Odpowiedź
+ 1
Variables m1 and m2 are visible only in main method, so, you should send them as arguments in methods used for input and printing. Input functions should return a matrix, but before returning don't forget to close scanner. Print methods are fine, you just need to pass your matrix as an argument. Hope it helps!
28th Sep 2020, 5:59 PM
xxxx