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 { //Q1 public static int Counter(int n1, int n2, int n3) { int count = 0; if (n1 > 90) count++; if (n2 > 90) count++; if (n3 > 90) count++; return count; } //Q2 public static bool Capital(string n1) { if (n1[0] >= 'A' && n1[0] <= 'Z') return true; else return false; } public static void Q3(int n1, int n2) { int count = 0; int from = n1; int to = n2; if( n1 > n2) { from = n2; to = n1; } for (int i = from; i <= to; i++) { //count = count + 1; count++; Console.WriteLine(i); } Console.WriteLine(count); } public static bool Q41 (string n1) { for (int i = 0; i < n1.Length; i++) { if (!(n1[i] >= 'A' && n1[i] <= 'Z')) return false; } return true; } public static bool Q42(string n1) { //if (n1 == n1.ToUpper()) // return true; //else // return false; return (n1 == n1.ToUpper()); } static void Main() { Console.WriteLine("Hello World"); Console.WriteLine(); Q3(8,21); Console.WriteLine(); bool b= Capital("Ahmad"); Console.WriteLine("b: {0}", b); Console.WriteLine(); int num= Counter(100, 70, 557); Console.WriteLine("num: {0}", num); } }

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