Nested for loops......HELP!!!

I need to create the pattern below.

1
2
3
4
5
6
7
8
9
10
*                           * 
**                         ** 
***                       *** 
****                     **** 
*****                   ***** 
******                 ****** 
*******               ******* 
********             ******** 
*********           ********* 
**********         **********


But I can't figure out how to start? I've read up on the for loops and nested loops but none of it is making sense to me. I know what goes in the for statement such as the initializing statement, the expression and the altering list. I'm only able to get 10 rows of 10 stars.
Look at each side and see how many stars there are compared to the line number, which will probably end up being you index in the loop.
Topic archived. No new replies allowed.