Question: C++ Write a function that takes two integer parameters (n, m) (which you can assume to be nonnegative) and draws a (hollow) rectangle of *
Write a function that takes two integer parameters (n, m) (which you can assume to be nonnegative) and draws a (hollow) rectangle of * characters to stdout. E.g., on input (4, 7), the output would look like this: IMPORTANT: note that the rows have spaces between each star to account for the fact that terminal cells are usually taller than they are wide. Consecutive * characters would look like *******, but you want *******
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
