online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// Polyhedral dice program using System; class Program { // ------------------------- // Globals // ------------------------- static Random random_generator = new Random(); // ------------------------- // Subprograms //-------------------------- static int roll_dice() { int result = random_generator.Next(1, 7); return result; } // ------------------------- // Main program // ------------------------- static void Main() { int number = roll_dice(); Console.WriteLine($"You rolled a {number}"); } }

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