0
Matrix
It is a good way to roratate matrix? https://code.sololearn.com/cIQ4zXG8EW7b/?ref=app
4 Respostas
+ 1
No, because you haven't rotated the matrix, only printed a rotated matrix.
The simplest is as follow
https://code.sololearn.com/cjYzYN62u97T/?ref=app
+ 1
Khai123 No, it is not the same, you do not end up with a variable that contains the rotated matrix. In other words you can't use the rotated matrix for any other calculation. You have only printed it to the screen.
0
I think I did the same way:)))
0
Oh, Im sr. I think that using nested loop is the right way to do it.