Haha, this is just a demo, written casually, you can change this to exit, and then as you expected, the program will exit directly.

Try modifying it yourself, you will fall in love with this way of programming.