Lab6 - rows between the top star and the middle row and the...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ENG101 Lab Exercise 6 September 30 th and October 1 st Iteration: Drawing Concepts: Using iterations in order to draw a picture Use for or while loops in order to create an output on the screen that looks like this: * *** ***** ******* ********* *********** ************* *************** ***************** ******************* ***************** *************** ************* *********** ********* ******* ***** *** * Hint: Use each row as an iteration. Within each row iteration, you can use a few iterations that outputs spaces and *’s in the appropriate amounts. I suggest that you calculate the number of spaces and *’s in each row as a function of the row number before you start coding. The size of the diamond should be user inputted. The user should input the number of
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon