+ 2
You could remove the extra array you are making and directly access elements from the 'matrix' array.
https://code.sololearn.com/c24AMBXUmihH/?ref=app
But apart from that, if you're looking for some built-in way to print an array like in other languages, there isn't one (you can put this inside a function though)