Please Please tell me why this code is not passing the testcases given in problem manmohan loves patters-II
import java.util.*;
public class main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = 5;
System.out.println(“1”);
for(int i=1;i<n;i++) {
System.out.print(i);
for(int j=0;j<i-1;j++) {
System.out.print(“0”);
}
System.out.print(i);
System.out.println();
}
}
}