Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main() {
  5. int a;
  6. while (true)
  7. {
  8. if (std::cin >> a) {
  9. continue;
  10. }
  11. else {
  12. std::cout << "Input is not a number" << std::endl;
  13. break;
  14. }
  15. }
  16.  
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement