Create such a .NET Core console program as shown above, and it crashes when debugging. There are two solutions.
1. Add Console.ReadKey(); such a code after the output, or Console.ReadLine();
2. We are used to pressing F5 during normal operation, but in fact, we can press Ctrl+F5