文件名称:square
介绍说明--下载内容均来自于网络,请自行研究使用
打印“魔方阵”。所谓魔方阵是指这样的方阵,它的每一行、每一列和对角线之和均相等,
且每个数在 1 ~ 阶数*阶数 之间,互不相等。例如,3阶魔方阵为
8 1 6
3 5 7
4 9 2
要求键盘输入阶数,打印出一种可能的结果。
-Print " magic square." The so-called magic square is a square so that each row and each column, and diagonal are equal, and each number in the order of 1* order, between each other and so on. For example, the 3 magic square of 816,357,492 requires keyboard input order, print out a possible result.
且每个数在 1 ~ 阶数*阶数 之间,互不相等。例如,3阶魔方阵为
8 1 6
3 5 7
4 9 2
要求键盘输入阶数,打印出一种可能的结果。
-Print " magic square." The so-called magic square is a square so that each row and each column, and diagonal are equal, and each number in the order of 1* order, between each other and so on. For example, the 3 magic square of 816,357,492 requires keyboard input order, print out a possible result.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
square.cpp