CS 200 - Lab 12

Fancy rectangle

Your task

This lab is similar to Lab 10.  However, instead of drawing the rectangle as composed entirely of one character, draw the rectangle so that near each corner, inset by one row and one column from the edge, a different character is drawn.

Example run (user input in bold red):

Number of rows: 12
Number of columns: 35
...................................
.O...............................O.
...................................
...................................
...................................
...................................
...................................
...................................
...................................
...................................
.O...............................O.
...................................

Getting started

If you have a solution open in Visual Studio, close it (File->Close Solution).

Download lab12.zip.  Import it into Visual Studio (File->Import...).

Add your code to the source file called FancyRectangle.c.