online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import java.io.*; import java.util.*; public class Main{ int i,j,n,z; int arr[][]=new int[100][100]; Scanner S=new Scanner(System.in); public void mainpattern() { n=S.nextInt(); z=1; for(i=0;i<n;i++){ for(j=i;j<n;j++){ arr[j][i]=z; z+=1; } } for(i=0;i<n;i++){ for(j=i;j>=0;j--) System.out.print(arr[i][j]+" "); System.out.print("\n"); } } public static void main(String args[]){ Main p=new Main(); p.mainpattern(); } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue