Module: Subroutines: procedures and functions - 1


Problem

6/11

Square

Problem

Write a procedure with parameters n and s, which outputs a square of size n* n from a character entered from the keyboard. Using this procedure, write a program that asks for two values, a side of a square and a symbol, and calls the procedure for drawing the desired square.

Input data: first enter the length of the side of the square (natural number), then in a new line - the character from which the square is built.
Output: print the desired square .

Example.
Input Output
3 zzz

zzz