Use iteration to build a grid of arbitrary size. Create a format string that contains a single format specifier. Create a string variable containing an arbitrary number of dashes. Use iteration, the printf() function, and your creativity to generate the following grid. Design your logic so that it can generate a grid containing an arbitrary number of columns and rows. Use a single variable to control the number of columns and another variable to control the number of rows.
What have you written so far? Please show us your working code. Thanks.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.