There are three ways:
1. Start debugging Don’t use this button:
directly Ctrl+F5 start. The effect is as follows:

2. Add the system (” pause “);
#include< stdio.h>
1. Start debugging Don’t use this button:


2. Add the system (” pause “);
#include< stdio.h>
the main () {
printf (” Hello, World! \n”);
system (” pause “);
}
The effect is as follows:
3. Add _getch ();
#include< stdio.h>
#include < conio.h>
the main () {
printf (” Hello, World! \n”);
_getch ();
}
The effect is as follows: