Lab09 consists of three programs
printStarSquare that displays a square of stars at the left margin of the screen. The function should have one parameter, which is the size of the square. For example, if the number passed into the function is 5, the square printed should look like this:
***** ***** ***** ***** *****Include a main function in your file to test your function. The main should allow the user to enter a number, and then call your function with that number.
printSquare that works just like printStarSquare, except that this time, you have two parameters. One of the parameters will be a char variable that is the character you want to use to build the square. For example, if you call the function with
printSquare(4, 'H') then the output would be:
HHHH HHHH HHHH HHHH
On the other hand, if you call the function with
printSquare(3, 'I') then the output would be:
III III III
printBox that works just like printSquare, except that this time, the character is printed only on the outline
of the square. Your main should allow you to input a value for the size of the box, and the character to use to draw the box. For example: printBox(4, 'H') should produce:
HHHH H H H H HHHH
and
printSquare(3, 'I') should produce:
III I I III