Lab4 - Lab 4: Assigned Sunday Oct 2, due Friday Oct. 14 at...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 4: Assigned Sunday Oct 2, due Friday Oct. 14 at 11:59. Objective: ask the user for three things: 1. Choose to draw either a triangle or a square. 2. Specify the size (in rows to be printed). 3. Specify the character to use when drawing the triangle or square. If the user specifies a rectangle of size 8 using ‘#’, then output: ######## ######## ######## ######## ######## ######## ######## ######## Note that the “square” is 8 rows and 8 columns. If the user specifies a triangle of size 6 using ‘@’, then output:
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 11/03/2011 for the course EAS 230 at SUNY Buffalo.

Ask a homework question - tutors are online