Print on the comsole a filled square with side n, As in the examples.
The first step is to read the input from the console. After that we need to create a method, which will print the firs and the last rows because they are the same. Let's remember that we must give it a descriptive name and give it as a parameter the length of the side. We will use the constructor
Our next step is to create a method, which will draw the middle rows in the console. Again give it a descriptive name i.e.
In the end invoke the methods in the
Main() method of the program in order to draw the whole square:
Test your solution here: https://judge.softuni.bg/Contests/Practice/Index/594#3.