online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
using System; class HelloArray { static void Main() { int[] tab1 = { -5, -4, -3, -2, -1, 0, 1, 2, 3, 4 }; int[] tab2 = new int[10]; for (int i=0; i<tab1.Length; i++) { if (tab1[i] > 0) { tab2[i] = tab1[i]; } } for (int i=0; i<tab2.Length; i++) { if (tab2[i] == 0) continue; Console.Write(tab2[i] + " "); } } }

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