I can see you are going to ask us to generalize it later so it can do integers higher than 8.
I think for this set of numbers 12 is the only sum you will get, but just to be clear, shouldn't it be: "it's a magic square because each row and column sum to the same number" ? Anton. > If Sunanda will allow me to steal his subject line... ;-) > > The following 3-by-3 display is a simple magic square: > > 0 8 4 > 5 1 6 > 7 3 2 > > because each row and each column sums to 12. Write a function which > uses the integers 0 thru 8 (once each!) to construct all possible > 3-by-3 simple magic squares. Make it run as quickly as possible. > > -- > ---------------------------------------------------------------------- > Joel Neely joelDOTneelyATfedexDOTcom 901-263-4446 -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
