Select Page

Online Compiler and Code Executor for C# (C-sharp)

C# (C-sharp) Online Compiler

You can run and write your C# code using The Research Scientist Pod’s free C# online compiler.

Hello World C# (C-sharp) Example

Here is a simple Hello World example to get you started using C#.

// C# program to print Hello World!
using System;

// namespace declaration
namespace HelloWorldApp {

    // Class declaration
    class Hello {

        // Main Method
        static void Main(string[] args) {

            // statement
            // printing Hello World!
            Console.WriteLine("Hello World!");

            // Prevent the screen from
            // running and closing quickly