import java.util.Scanner; public class learn { public static void main(String[] args){ System.out.println("请输入你需要打印多少阶的回形数:"); Scanner scan = new Scanner(System.in); int num = scan.nextInt(); // 接收num,则打印num阶的回形数 scan.close(); int[][] hui = new…
回形数 键盘读入一个整数n(1-20),以n为矩阵大小,把1,2,3,4,5-按顺时针螺旋的形式填入. import java.util.Scanner; public class HuiXingShu { public static void main(String[] args) { System.out.print("请输入一个整数:"); int lenth; Scanner scanner = new Scanner(System.in); lenth = scanner.n…