文件名称:Magic-square
介绍说明--下载内容均来自于网络,请自行研究使用
魔方阵
(1).设n是奇数,请编写程序构造n*n阶魔方阵,即行、列、两对角线上n个数之和相等的方阵。
(2).构造3*3素数魔方阵,即找出9个不大于500的素数并排成魔方阵。
-Magic square (1) n is an odd number, please write a program to construct n* n-order magic square that line, column the two diagonal n numbers equal to the sum of the square. (2) construct a 3* 3 primes magic square, i.e. to find the prime number 9 is not greater than 500 and arranged in the magic square.
(1).设n是奇数,请编写程序构造n*n阶魔方阵,即行、列、两对角线上n个数之和相等的方阵。
(2).构造3*3素数魔方阵,即找出9个不大于500的素数并排成魔方阵。
-Magic square (1) n is an odd number, please write a program to construct n* n-order magic square that line, column the two diagonal n numbers equal to the sum of the square. (2) construct a 3* 3 primes magic square, i.e. to find the prime number 9 is not greater than 500 and arranged in the magic square.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
04111107杨修宇
04111107杨修宇.doc
..............\【魔方阵】第一小题.c
..............\【魔方阵】第二小题.c