Help with the code!!

below is the code I have
the problem is the program shuts down too quick
also system("Pause") doesn't work


#include <iostream>
using namespace std;

int main()
{
int i;
cout<< "Enter your number: ";
cin>>i; //cin=keyboard, the number entered is stored in "i"
cout<<"The number you entered is "<<i <<"\n";
cout<<"Its double is "<< i*2<<"\n";
system("Pause");
return 0;
}
Your system("Pause");
should be system("pause");
all small letters.....you can also use upper case- system("PAUSE");
Windows is not case sensitive. The real issue is the fact that you're even using system() at all.

Read the second post by Duoas:
http://www.cplusplus.com/forum/beginner/1988/
Thanks
Topic archived. No new replies allowed.