Hello! I need some help on how to stop the consol from closing. I'll put a <---- Where it cuts off.

Code:
#include <iostream>

using namespace std;

int main()
{
int a, b, c;
cout << "Hello!\nPlease Enter Any Whole Number:";
cin >> a;
cout << "Alright!  You entered ";
cout << a;
cout << "\nAlright! Now Enter Another Whole Number:";
cin >> b;
<----- (Cuts off here)
cout << "Alright!  You entered ";
cout << b;
cout << "\nNow where going to add ";
cout << a;
cout << " and ";
cout << b;
cout << "!\n";
c = a + b;
cout << c;
return 0;
}
I have no idea on how to make it wait to the end to close. Any help please? (I didn't comment the code since it's so basic.)