- #1
ckirmser
- 105
- 3
I couldn't think of a better subject line without, basically, asking my question there.
What I have is a 9x7 table and I need to know if there is an easy way to drop a number into any of the squares and then populate the remainder of the table by subtracting 1 from each square as you move away from the original orthagonally, repeating the procedure for each newly populated square to populate empty squares.
I don't really know if this should be a geometry or linear question, so I dropped it in here.
My end goal is to take the formula, code it into Java or VBasic and use it in a program I'm working on. I could simply create a case statement that populates the table manually for each possible starting point, but that is gruesome to think of and I figure there must be an easier way...
Thanx for any help!
What I have is a 9x7 table and I need to know if there is an easy way to drop a number into any of the squares and then populate the remainder of the table by subtracting 1 from each square as you move away from the original orthagonally, repeating the procedure for each newly populated square to populate empty squares.
I don't really know if this should be a geometry or linear question, so I dropped it in here.
My end goal is to take the formula, code it into Java or VBasic and use it in a program I'm working on. I could simply create a case statement that populates the table manually for each possible starting point, but that is gruesome to think of and I figure there must be an easier way...
Thanx for any help!