6*6的螺旋矩阵怎么用FPC语言打印
答案:2 悬赏:10
解决时间 2021-11-25 10:02
- 提问者网友:月葬花瑰
- 2021-11-24 15:46
6*6的螺旋矩阵怎么用FPC语言打印
最佳答案
- 二级知识专家网友:废途浑身病态
- 2021-11-24 17:05
height就相当于n
width就相当于m
public class SpiralMatrixMaker {
public static void main(String[] args) {
int max = 20;
int i = 0, j = 0;
int height = 3;
int width = 4;
int[][] a = new int[max][max];
int m = 1, s = 1;
int x1 = 0;
int y1 = 0;
int x2 = height;
int y2 = width;
width就相当于m
public class SpiralMatrixMaker {
public static void main(String[] args) {
int max = 20;
int i = 0, j = 0;
int height = 3;
int width = 4;
int[][] a = new int[max][max];
int m = 1, s = 1;
int x1 = 0;
int y1 = 0;
int x2 = height;
int y2 = width;
全部回答
- 1楼网友:摧毁过往
- 2021-11-24 18:08
可以私聊我~
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯