* Problem: a square of stars

Write a C# console program, which reads from the console a whole positive number N and prints on the console a square of N stars, like in the examples below.

Sample Input and Output

Input Outup Input Output Input Output
3 ***
* *
***
4 ****
*  *
*  *
****
5 *****
*   *
*   *
*   *
*****

Hints and Guidelines

We create a new console C# program. To read the number N (2 ≤ N ≤100), we use the following code:

Finish the program above, so that it prints a square, made of stars. It might be necessary to use for loops. Look for an information in the Internet.

Attention: this task is harder than the rest and is given now on puprose and it's marked with a star, in order to provoke you to look for information in the Internet. This is one of the most important skills, which you have to develop while you're learning programing: looking for information in the Internet. This is what you're going to do every day, if you work as developers, so don't be scared, try it out. If you have any difficulties you can also ask for help in the SoftUni forum: https://softuni.bg/forum.