How would I set up a loop to draw a triangle using *'s given a user entered size
Example Run 1:
Code Java:
Shape? triangle
Size? 4
*
**
***
****
(those _'s are suppose to represent blank spaces)
I am guessing I need to set up a loop to draw the spaces and then one to do the stars
Re: How would I set up a loop to draw a triangle using *'s given a user entered size
Please don't post the same question twice. Your other post has been deleted.
As for you question, did you search the forums? Try search for "triangle asterisk", there are a few older posts you might be interested in reading.
Re: How would I set up a loop to draw a triangle using *'s given a user entered size
Also scroll down to the bottom of this thread.. There is a Similar Threads box which contain the answers to your question