This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
You can keep your space formatting intact by using the CODE tags when posting (or editing). So this is what you want...
Take this one row at a time. Suppose row = 1, and column goes from 6 to 1. For column values 6 through 2, we want a space. But for column = 1, we want the number 1. The trick is expressing this (the pattern of 5 spaces followed by the number "1") in terms of row and column values.
Next, suppose row = 2, and column again goes from 6 to 1. For column values 6 through 3, we want a space. But for column values 2 and 1, we want the numbers 2 and 1 respectively.
Do you see a pattern? [ October 13, 2005: Message edited by: marc weber ]
Joined: Oct 12, 2005
By George I think I got it... My teacher doesn't "break it down" he just says to do it...