Beginner Loop
<p>I have a problem given by our instructor.</p>

<p>Input: Input begins with a single integer n which represents the length of the side of the square. It is
then followed by a single character c which shall be used to construct the square.
Output: The nxn square constructed from c.</p>

<p>Sample input:
5
B</p>

<p>Sample output:</p>

<p>BBBBB</p>

<p>BBBBB</p>

<p>BBBBB</p>

<p>BBBBB</p>

<p>BBBBB</p>

<pre><code>Scanner in = new Scanner(System.in);
int num = in.nextInt();
String let = in.next();
for(int k=0;k&lt;num;k++)
    {

    System.out.println(let);

        for(int p=0;p&lt;num;p++)
        {
        System.out.print(let);

            }



    }
</code></pre>
