my code is running prefectly in eclipse…but in coding block complier it shows error…here is my code
public static void main(String args[]) {
Scanner Sc = new Scanner(System.in);
int n = Sc.nextInt();
int nst =1;
int val =1;
if(n<=1000){
for(int row =1;row<=n;row++)
{
// work for numbers
if(row==1)
{
System.out.print(“1”);
}
else {
for(int cst=1;cst<=nst;cst++) {
if(row==2) {
val=1;
}
if(cst==1 || cst ==nst)
{
System.out.print(val);
}
else
{
System.out.print(“0”);
}
}
}
// preparation
System.out.println();
nst++;
val++;
}
}