Console.WriteLine("Console app started");
      
      
      Console.WriteLine("Press any key to exit...");
      Console.ReadKey(true);

      Csharp language logo
      General output to console

      C# recipes

      The code starts the console application, and then asks the user to press any key to exit. If the user presses a key, the code will exit and the console application will be closed.

      Shortcut: cgo

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.