home *** CD-ROM | disk | FTP | other *** search
- Power Square
- By: John A. Marsh
- May 31, 1991
-
- Many of you may have seen "magic squares" where all the
- sides add up to the same number. The same idea is presented here
- except that this program generates squares whose horizontal,
- vertical, and diagonal lines all multiply to the same product!
-
- This is my first attempt at a C++ program, so I did not
- spend much time on formatting the final square. If the numbers
- become larger than the format allotted for them they squish
- together. Many combinations will give a very readable square.
- The instructions are self explanatory, so have at it!
-
- The program is free to have, use, copy, and give. Program
- distributing services are not allowed to charge more than $5 for
- copying this program. If this program is distributed it must
- contain ALL the following files in UNMODIFIED form:
-
- POWERSQR.EXE
- POWERSQR.DOC
- PWERSQR1.DSC
- NOREADME.DOC
- TSTIMONY.DOC
-
- The source code is available for $5 at the address given at
- the end of this document. I retain the rights to this program
- and its source code. Modified versions may not be distributed
- without my written consent.
- If you have any questions, comments, ideas, etc., just drop
- me a line. I would like to know where this program is getting
- around to.
-
- BASHER@corral.uwyo.edu
-
- Address:
- 623 Lewis #B
- Laramie, WY 82070