İ have juxt started to learn C++. and i tried to write a basic main fuction but when i run it the program suddenly closes!!
Can someone tell me the reason!!!
Here is the code........
[CODE]include <iostream>
using namespace std;
int main()
{
int number;
{
cout<<"Enter Any Number: ";
cin>> number;
cout<<"The number you entered"<< number <<"\n";
cout<<"The mult. of your number with two"<< number * 2 <<"\n";
}
cin.get();
}