Advertisement
Guest User

good.cxx

a guest
Jul 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. #include <iostream>
  2. int main()
  3. {
  4.     int input;
  5. x:
  6.     std ::cout << " \n please enter an integer\n";
  7.     std ::cin >> input;
  8.     if (input >= 1 && input < 101)
  9.         std::cout << "you entered:" << input << "and it is in the range 1 to 100";
  10.     else
  11.         std::cout << "your number is not in the range  1 to 100";
  12.     goto x;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement