Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- short int start_ans = 0;
- do
- {
- cout << "\n\nWhat do you want to do?\n\n"
- << " [1] one\n [2] two\n [3] three\n\n"
- << "Your answer will be: ";
- cin >> start_ans;
- } while (start_ans != 1 && start_ans != 2 && start_ans != 3);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement