Matrix 3#9984

Matrix 3

1 Sekunde
64 Megabyte
Sehr leicht

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.

Eingabe

A natural number , where 1 \leq n \leq 10.

Ausgabe

Display a matrix of size n \times n, formatted as shown in the example.

Beispiele

Beispiel 1

Loading
Loading