Why do you need an if statement? You only need 2 loops. Outer loop controls the number of rows. For each row print x number of spaces then have the inner loop print the numbers.
--- Update ---
...
Type: Posts; User: Junky
Why do you need an if statement? You only need 2 loops. Outer loop controls the number of rows. For each row print x number of spaces then have the inner loop print the numbers.
--- Update ---
...