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.
tuskyballer 0 Newbie Poster
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.