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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!