Add



Console Based Applications

Console based applications provide simple but powerful platform for writing applications. To create a console based application, first of all create new Project and select Console Application from options available. Enter the application name for example, MyFirstConsoleApplication and press OK.

Creating Console Based Application

Console Based Application EXAMPLE

    namespace MyFirstConsoleApplication
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("Enter your name:");
                string name = Console.ReadLine();
                Console.WriteLine("Your Name is " + name);
                Console.ReadKey();
            }
        }
    }
            

Console Based Application OUTPUT

Here is the output of Console based application example:

Console Based Application Output