I would like to let you know that I'm new to this platform, I'm trying to solve this question, could anyone help me?
statement The user must be prompted for the size of the matrix to be created. After user input, a square matrix is created with the information obtained. Example: The user entered the value 3 so we will have it.
[][][]
[][][]
[][][]
However, when printing the matrix on the screen, the diagonal must be filled with the values 1 and the value 0 for the other positions, but the diagonal must start on the right side. Example of the expected solution:
[0][0][1]
[0][1][0]
[1][0][0]