Fill a 3x3 square with the numbers from 1 to 9, so the four sides and the two diagonals share the same sum, which is to be as large as possible.
(In reply to
re: Solution by Bryan)
Charlie gave a good answer, but I would say, first of all, it's fun to write programs. (I have only written a handful of programs in my life. I just learned Visual Basic recently. Of course my code won't be as elegant as Charlie's). Secondly, I also drive a car to go for a mile trip, although I suppose it's healthier to walk. And those who prefer to solve this with pen and paper will at least know that a solution (in this case) greater than 18 is not possible, so they won't waste time trying to find it. (Posting the program code will enable any flaws it has to be exposed). btw, I think those bells and whistles are cool. That one line looks so profound:
Imports System.Runtime.InteropServices
Edited on June 22, 2004, 2:52 pm
|
Posted by Penny
on 2004-06-22 14:47:17 |