There are two types of lines in your rectangle. The top and bottom line both look alike and all the lines in between have the same appearance. The top and bottom all use the same symbol. The interior lines all have the first and last char the same as the top and bottom line but the interior char are different.
Start out by writing a program that can write a line of the x number of the same char where x is input by user.
Then add code to write a line x char long but both the first and last char are different than all the interior char.
Then use that knowledge to write the real program.
Reputation Points: 718
Solved Threads: 373
Nearly a Posting Maven
Offline 2,253 posts
since Jul 2005