online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Online C# Compiler. Code, Compile, Run and Debug C# program online. Write your code in this editor and press "Run" button to execute it. *******************************************************************************/ using System; class HelloWorld { static void Main() { int t,firstTemp; int max; int count = 0; int total = 0; //درجة الحرارة التي سوف نقارن بها int compt; int c = 1; int icomp = 1; //1 Console.Write("Enter t:"); firstTemp = int.Parse(Console.ReadLine()); max = firstTemp; total = firstTemp; compt = firstTemp; Console.WriteLine("compt: {0}, c: {1}", compt, c); for (int i = 0; i < 59; i++) { Console.Write("Enter t:"); t = int.Parse(Console.ReadLine()); total += t; if (t > max) max = t; if (t == firstTemp) count++; if (t == compt) c++; else { compt = t; c = 1; icomp = i; } if (c > 4) Console.WriteLine("compt: {0} greater than 4 ", icomp+2); Console.WriteLine("compt: {0}, c: {1}", compt, c); } Console.WriteLine("max: {0}",max); Console.WriteLine("count: {0}", count); } }

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