online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> int main() { int n=5; int array[n][n]; for (int i =0; i<n; i++){ for (int j =0; j<n; j++){ array[i][j] = 0; } } for (int i =0; i<n; i++){ for (int j =0; j<n; j++){ printf("%i ", array[i][j]); } printf("\n"); } for (int i =0; i<n; i++){ for (int j = 0; j<n; j++){ if(i<j-1){array[i][j] = 1; } } } for (int i =0; i<n; i++){ for (int j = 0; j<n; j++){ if(j<(n-i+1)){array[i][j] = 0; } } } printf("\n"); for (int i =0; i<n; i++){ for (int j =0; j<n; j++){ printf("%i ", array[i][j]); } printf("\n"); } return 0; }

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