online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
using System; using System.Threading; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int hrs = 0, min = 0, sec = 0; Console.CursorVisible = false; while (true) { sec++; if (sec == 60) { sec = 0; min++; if (min == 60) { min = 0; hrs++; if (hrs == 24) hrs = 0; } } Console.Write("{0:00}:{1:00}:{2:00}", hrs, min, sec); Thread.Sleep(1000); // c# Sleep(Int32 milliseconds) Console.Clear(); if (hrs == 1) break; } } } }

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