Question: C++ Trying to write a function that works In the following manner: --------------------------------- Please enter integer 1 cin >> int1 Please enter integer 2 cin
C++
Trying to write a function that works In the following manner:
---------------------------------
"Please enter integer 1"
cin >> int1
"Please enter integer 2"
cin >> int2
--------------------------------------
if the user inputs anything other than a valid integer, it prompts the user
----------------------------------------
"Error please enter an integer value!"
--------------------------------------------------
and the error message continues to loop until user enters a valid integer value
(insert code that uses int1 and int2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
