I am using a book called "C++: A Dialogue" in order to learn the language. I am stuck on the following code:I cannot get the compiled program to go beyond input after it says "please enter your bank balance". After I imput a number and press enter, the program simply closes. Can anyone tell me what I am doing wrong?Code:#include <iostream>
using namespace std;
int main()
{
short balance;
cout << "Please enter your bank balance: ";
cin >> balance;
if (balance < 10000)
cout << "Please remit $20 service charge." << endl;
else
cout << "Have a nice day!" << endl;
return 0;
}