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 *

C++  C++ Write a function that takes two integer parameters (n, m)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!