Magic squares of doubly even order: Difference between revisions

comment deleted!
No edit summary
(comment deleted!)
Line 110:
}
}
int magicNumber() { return sz * ( ( sz * sz ) + 1 ) / 2; }//return ( ( ( sz * sz + 1 ) / 2 ) * sz ); }
void inc( int& a ) { if( ++a == sz ) a = 0; }