Question: need help completing this code! please help! 5.5 Lab 30: Square of Characters Write a program to build a square of characters. The character making
need help completing this code! please help!


5.5 Lab 30: Square of Characters Write a program to build a square of characters. The character making up the square and the size of the square is to be determined by the input. Use a FOR loop to build your square. For example, if % and 5 are input, then your program should build a square of % characters that consists of 5 rows and 5 columns Hints 1. Use a char datatype for the variable that holds the character. You can then use the variable as an argument to setfilio 2. Use an int datatype for the variable that holds the size of your square. You can then use the variable as an argument for setw() 3. Each iteration of your FOR loop will output a row of characters. When the input is as shown in Figure 1, your program should produce the output as shown in Figure 2. Figure 1: (input) Figure 2 (output) @@@@@@@ @@@@@@ @@@@@@@ era a cele @ @ @ @ @ @ @ @@@@@@ 1 / Ryan Dewey 2 V/ CS 1336. DMI 37 Lab 3e 4 5 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
