文件名称:square
-
所属分类:
- 标签属性:
- 上传时间:2013-06-06
-
文件大小:884byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
打印“魔方阵”。所谓魔方阵是指这样的方阵,它的每一行、每一列和对角线之和均相等,
且每个数在 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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.