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. *******************************************************************************/ /* تمرين1: أكتب برنامجا\عملية خارجية -- تتلقى من المستخدم رمزا وتفحص اذا كان الرمز Y/N وتطبع رسالة ملائمة خلاف ذلك تطبع Error تمرين2: أكتب برنامجا\عملية خارجية -- تتلقى من المستخدم رمزا وتفحص اذا كان الرمز حرف كبير تطبع الحرف الصغير الملائم وبالعكس خلاف ذلك اذا لم يكن حرفا وتطبع رسالة ملائمة */ using System; class HelloWorld { static void TestChar01() { Console.Write("Please enter Y/N: "); char ch1 = char.Parse(Console.ReadLine()); //if ( (int) ch1 == 89) if (ch1 == 'Y') Console.WriteLine("Yes"); else if (ch1 == 'N') Console.WriteLine("No"); else Console.WriteLine("Error"); } static void TestChar02() { Console.Write("Please enter char: "); char ch1 = char.Parse(Console.ReadLine()); //if ( (int)ch1>= 65 && (int)ch1 <= 90) if (ch1 >= 'A' && ch1 <= 'Z') { int d = (int)ch1; d += 32; char ch2 = (char)d; Console.WriteLine(ch2); } else if (ch1 >= 'a' && ch1 <= 'z') { int d = (int)ch1; d -= 32; char ch2 = (char)d; Console.WriteLine(ch2); } else Console.WriteLine("This is NOT a letter!"); d++; } static void TestChar03() { Console.Write("Please enter char: "); char ch1 = char.Parse(Console.ReadLine()); int d = (int)ch1; d++; //d--; char ch2 = (char)d; Console.WriteLine(ch2); } static void Main() { Console.WriteLine("Hello World"); } }

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