Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- char start_ans[80];
- 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 (atoi(start_ans) != 1 && atoi(start_ans) != 2 && atoi(start_ans) != 3);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement