Practice
getAnEvenInteger
Write a function with the header
int getAnEvenInteger( int min, int max )
|
that prompts the user for an even, whole number between
a lower limit min and an upper limit max inclusive.
Your function returns an even, whole number within this
prescribed range. Your function accepts
the user’s input, displays an error message if the
input value is odd and continues to prompt for valid
input until the user provides it.
You may assume that the user only enters digit characters.
|
|
|