How to write a C++ program that asks the user to enter integers until the user enters -1 , the program must then shows the maximum and minimum of the numbers the
![How to Input Validate an Integer (int) in C++ - using a while loop, cin.clear(), and cin.ignore() - YouTube How to Input Validate an Integer (int) in C++ - using a while loop, cin.clear(), and cin.ignore() - YouTube](https://i.ytimg.com/vi/m2P5A4nR51g/maxresdefault.jpg)
How to Input Validate an Integer (int) in C++ - using a while loop, cin.clear(), and cin.ignore() - YouTube
![cin.fail - System prompts "Press any key to continue.." as many time I input wrong entry. I don't want it more than once. : r/cpp_questions cin.fail - System prompts "Press any key to continue.." as many time I input wrong entry. I don't want it more than once. : r/cpp_questions](https://external-preview.redd.it/jEl-ZMvFoFskQUMXLqItK1Z0Xo_hDptKKw5bNkH_4L8.jpg?auto=webp&s=360684a90cf96fa2d63b5feb9ccd8b11677b84de)
cin.fail - System prompts "Press any key to continue.." as many time I input wrong entry. I don't want it more than once. : r/cpp_questions
![Input Validation 10/09/13. Input Validation with if Statements You, the C++ programmer, doing Quality Assurance (by hand!) C++ for Everyone by Cay Horstmann. - ppt download Input Validation 10/09/13. Input Validation with if Statements You, the C++ programmer, doing Quality Assurance (by hand!) C++ for Everyone by Cay Horstmann. - ppt download](https://images.slideplayer.com/27/9065760/slides/slide_11.jpg)