Use an outer while loop to control the number of line. Within the outer while loop use two loops in sequential manner. The first inner loop will control the number of spaces to print for the line you are on. The second inner loop will print the sequence of numbers necessary for the line you are on.
line loop
space loop
numbers loop
Last edited by Lerner; Feb 8th, 2010 at 10:55 am.
Reputation Points: 718
Solved Threads: 373
Nearly a Posting Maven
Offline 2,253 posts
since Jul 2005