Code showing error

my code is showing error when i am compiling on coding blocks. while it is working fine on netbeans ide
import java.util.Scanner;

public class MANMOHAN2 {

public static void main(String[] args) {
	int i,j;
	Scanner input=new Scanner(System.in);
	int n=input.nextInt();
	for(i=0;i<n;i++)
	{
		for(j=0;j<=i;j++)
		{
			if(j==0)
			{
				if(i==0) {
					System.out.print("1");
				}
				else {
					System.out.print(i);
				}
			
			}
			else if(j==i) {
				System.out.print(i);
			}
			else {
				System.out.print("0");
			}
				
		}
		System.out.println("");
	}

}

}

@KUNAL.SHARMA5724510,
Here is your corrected code: https://ide.geeksforgeeks.org/aOrrv1b23D

Kindly use the class name as Main only. You have complied using MANMOHAN2, this is what the error is.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.