online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
using System; class HelloWorld { static void Main() { int n=12; int [] tab = new int [n]; Random rand = new Random(); for (int i=0; i<tab.Length; i++) { /* if (i<=3) // 0 1 2 3 { tab[i] = rand.Next(-29,30); } */ if (i>=4 && i<=7) // 4 5 6 7 { int sto = 101; while (sto!=0) { sto -= 1; tab[i] = sto; Console.WriteLine("tab[" + i + "] = " + sto); } } /* if (i>=8) // 8 9 10 11 { tab[i] = int.Parse(Console.ReadLine()); } */ } foreach (var x in tab) { Console.WriteLine(x); } } }

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