Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

drawing a triangle with characters?

843789Feb 17 2010 — edited Feb 17 2010
I am supposed to write a program that draws a triangle like this:

*
**
***
****
*****
and so on with the number of rows and the type of character used to draw the triangle specified in command line arguments. I know I need to use for and/or
while loops, but I have tried many combinations and nothing seems to work. Some help, please?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2010
Added on Feb 17 2010
6 comments
353 views