Press any key to exit console application - CSharp Language Basics

CSharp examples for Language Basics:Console

Description

Press any key to exit console application

Demo Code

using System;/* w  ww .  j  av  a  2  s. c  o m*/
class HelloWorld
{
   public static void Main()
   {
      Console.WriteLine("\nMain method complete. Press Enter.");
      Console.ReadLine();
   }
}

Result


Related Tutorials