import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int nst=1;
int nsp=n-1;
int val=1;
int row=1;
while(row<=n){
//space
for(int csp=1;csp<=n;csp++){
System.out.print("\t");
}
for(int cst=1;cst<=nsp;cst++)
{
System.out.print(val+"\t");
val++;
}
int cst=1;
if(cst<=nst/2)
val++;
else
val--;
}
System.out.println();
nsp--;
nst+=2;
row++;
}
}
i got signal error where i went wrong