|Pascal was planned to be a highly readable language and indentation is the main tool to achieve the purpose. To indent means to shift toward right a block of statements by two spaces so to highlight the scope of a structure (e.g. a for loop).|
In the program there are two nested loops, the outer one driven by x (from 1 to 6) and the inner by y (from 1 to the current value of x). Notice the outer loop embraces two statements, the inner loop (for) and the writeln to issue a line feed/carriage return at the end of each line. The inner loop actually writes the lines so it does not need a begin/end since it is made by just one commad (write('*').
The above logic is the translation in Pascal code of what nbrane suggested in his post #1. The logic of the assignment is exactly the same of the Multiplication Table exercise.