+ 5

Matrix operations challenge

Try to check logical of the matrixes and make a code to ask user for the first (Matrix 1) and show outputs for Matrix 2 and Matrix 3: Matrix 1 42 18 35 72 Matrix 2 6,48 4,24 5,916 8,48 Matrix 3 6 4 6 8 To get Matrix 2, you must to apply an operation to each elements in Matrix 1 and in the same way, to get Matrix 3, you must to apply an operation to elements in Matrix 2. Let's do it if you want but it's not a task, it's a challenge to improve your skills. It's a simple exerci

15th Jan 2018, 6:44 AM
Daniel
Daniel - avatar
3 Answers
+ 4
Well, here is mine :) I just did it for 2x2 matrixes because I realized too late that matrixes can be any size jajajaja. https://code.sololearn.com/cRixVf95e3mt/?ref=app Edited: Now it works with NxN matrixes ^^
15th Jan 2018, 7:24 AM
SebastiĂĄn Zapata
SebastiĂĄn Zapata - avatar
+ 4
Here is mine. It works propperly now. (changed int --> round). First enter the number of rows, press enter. Than enter the rows with spaces between the numbers: example: 3 1 2 3 4 5 6 7 8 9 https://code.sololearn.com/c2LEc6L8VTU4/?ref=app
15th Jan 2018, 6:17 PM
davy hermans
davy hermans - avatar
+ 4
Fun challenge! My try in Ruby: https://code.sololearn.com/c5VEffEKiBD5/#rb
16th Jan 2018, 7:34 AM
noobcĂžder
noobcĂžder - avatar