Reference no: EM13164301
Write a program using one while loop that will read in a sequence of integers guaranteed to be within the
inclusive range of 0 through 99,999 from the user. Print out the smallest input, the largest input, the number of
even inputs, and the number of odd inputs. HINT: refer to the code from the in-class handout inputDemo03.cpp
or from the top of page 152 in your text.
Example run (with user input indicated with bold italics):
Enter number or Q to quit: 100
Enter number or Q to quit: 200
Enter number or Q to quit: 300
Enter number or Q to quit: 90001
Enter number or Q to quit: 7
Enter number or Q to quit: 999
Enter number or Q to quit: Q
Largest value: 90001 Smallest value: 7
Even number count: 3 Odd number count: 3