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

      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


        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.