Question: In C++ Write a function to print a filled and hollow square of given width side by side to the screen. The two squares should
In C++

Write a function to print a filled and hollow square of given width side by side to the screen. The two squares should be separated by a single space. Your function MUST be named printSquares Your function should take a single parameter: an integer representing the width of a single square o Your function should not return anything Your function should print two squares, one filled and one hollow, side by side separated by a single space A call to printSquares with the input 5 should result in the following output *x Note that the whitespace betweenfor the hollow square is the width of 3rs (3 spaces)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
