Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main()
- {
- int input;
- x:
- std ::cout << " \n please enter an integer\n";
- std ::cin >> input;
- if (input >= 1 && input < 101)
- std::cout << "you entered:" << input << "and it is in the range 1 to 100";
- else
- std::cout << "your number is not in the range 1 to 100";
- goto x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement