Pause Screen

Hello All,

When I run this code the results pop up for a split second and then disappear. How do I freeze the screen so i can see the results of my code?

#include <iostream>
using namespace std;

int main()
{
const int MONTHS = 12;
int days[MONTHS] = {31,28,31,30,31,30,31,31,30,31,30};

for (int count = 0; count < MONTHS; count++)
{
cout << "Month " << (count + 1)<< " has";
cout << days[count] << " days.\n";

}

return 0;

}
This is the topic stickied to the beginners forum:

http://www.cplusplus.com/forum/beginner/1988/
Topic archived. No new replies allowed.