My code is:
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
if(n>0&&n<10){
int t=0,m=0;
int i, j, k, nso = 1, nsb = 4;
for (i = 1; i <= n; i++) {
for (j = 0; j < nsb; j++) {
System.out.print("\t");
}
t =i;
for (k = 1; k<=nso; k++) {
if (k <= i) {
System.out.print(t + "\t");
m=t-1;
t++;
}
else {
System.out.print(m + "\t");
m--;
}
}
nsb = nsb - 1;
nso = nso + 2;
System.out.println();
}
}
}
}
I am not able to understand why is it not submitting the code?