public class Test_lou {
static int count=1;
static int temp=0;
public static void main(String[]args) {
System.out.println("请输入想要的螺旋值:");
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int[][]arr=new int[n][n];
int m=0; //记录循环的次数,就是一共有多少圈
if(n%2==1) {
m=(n-1)/2;
}else {
m=n/2-1;
}
text(n, arr,m);
for (int i = 0; i < arr.length; i++) {
for (int j = 0; j < arr.length; j++) {