I am writing a program where the user enters how much money he has and if it's under 50 it would say"
Sorry not Enough
and I want the program to end there.
Here is the code I have written:
cin >> money;
if (money <= 50) {
cout << "Sorry not enough" << endl;
}
cout << "Here are the items you can buy" << endl;
int a = 50;
int b = 200;
of course this is not the entire code I wrote. If the person wrote a number less than 50, how do I make the code stop?
Thanks!