Write a console application program that will build and display a 10 by 10 rectangle within a 20 by 20 rectangle with diagonals. The 10 by 10 is to be centered within the 20 by 20. Use the hypen (-) character for the top and bottom of the rectangles. Use the pipe (|) for the sides and use the slashes (/ and \) for the diagonal. Use for loops to construct all lines of the diagram.

Recommended Answers

All 2 Replies

Thats sounds like a fun assignment now go do it.

Thats sounds like a fun assignment now go do it.

Exactly.

Read the Announcement.

Closing the thread; it should have been tuskyballer's responsibility to read our rules and adhere to them.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.