An online c# code compiler with interactive console.
Writing Code
You can either write a complete console program in the editor, or just a Main function, both of which would produce output on running the code in the Console tab. Frequently used namespaces are already included by default. Any additional namespaces can be added by adding
using
<namespace>
;
statements at the top of the editor.
Use
Console.Write()
or
Console.WriteLine()
to produce console output.
Use
Console.ReadLine()
or
Console.Read()
to read user input from the console
You
cannot
use
Console.ReadKey()
to read input due to redirection limitations
Shortcut Keys
F5/F8
When cursor is inside the editor pressing F5 or F8 will run the code.
Ctrl+S
When cursor is inside the editor pressing Ctrl+S will save the code and a permanent link will be generated for bookmarking and/or sharing the code