Given a natural number , your task is to produce a square matrix of dimensions n \times n. This matrix should be filled with integers ranging from to n-1, following the pattern illustrated in the example.
A natural number , where 1 \leq n \leq 10.
Display a matrix of size n \times n, formatted as shown in the example.
Beispiel 1