Why this program works fine with bc++ but it exit just ater getting the value of x from console in vc++?



#include <iostream.h>
void main()
{
int x;

cin >> x;
// cout<<endl;

x=x-10;
cout << x;

cin.get();
}