I'm trying to make a Latin Square program that accepts a user-entered size of square (e.g. entering 5 will generate a Latin Square 5x5) and then output the formatted square to the user. 

If you don't know what a Latin Square is or want to see the actual task I have been set, [look no further](https://imgur.com/rAIe63f).

I have slightly coded some of this, but I'm failing at the first hurdle. Teachers are providing no help, you lot are my only hope.

```
uses
  System.SysUtils;

var
  // Variables

  // 2D array, size defined in main code
  Square: array of array of integer;
  // Integer holding the square size
  SquareSize: integer;

begin
  // Introduction
  writeln('This program will generate a Latin Squar of a size designated by you.');
  // Ask for user input, receive and store in a variable
  write('Enter the size of the Latin Square (1 value): ');
  readln(SquareSize);
  // More user friendly garbage
  writeln('Latin Square size: ', SquareSize, ' x ', SquareSize, '.');

  // Calculations

  // Set size of the 2D array to user designated dimensions
  setlength(Square, SquareSize, SquareSize);

end.

```

After the last line of code (setlength) I want to set ALL values in my new 2D array to the user-entered number. I think.

Other than that, **I have no clue what I'm doing.**

If you want to help me, please can you try to keep it as simple as possible so I can understand it?

Sorry for any screw-ups made in this, first time on Stack Overflow.