online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// Teacher code program using System; public class Program { // ------------------------- // Subprograms // ------------------------- static string tcode (string teacher) { string[] letters = new string[2]; letters[0] = teacher.Substring(0, 1); int space = teacher.IndexOf(" "); letters[1] = teacher.Substring(space + 1, 2); string teacher_code = string.Join("", letters); teacher_code = teacher_code.ToUpper(); return teacher_code; } // ------------------------- // Main program // ------------------------- static void Main() { Console.Write("Enter the name of the teacher: "); string teacher = Console.ReadLine(); string teacher_code = tcode(teacher); Console.WriteLine(teacher_code); } }

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