drawing a triangle with characters?
843789Feb 17 2010 — edited Feb 17 2010I 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?