Hello , i am new to programming. How can i stop my executed code as below from disappearing .It appears my compiler is too fast.It compiles ok but the black output plan appears and disappears immediately when executed

#include <iostream>
using namespace std;
int main()
{ cout << "Hello World!";
return 0;
}