Anonymous user
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
void inc( int& a ) { if( ++a == sz ) a = 0; }
|