Question: A program declares an int variable named evenNum and initializes it to 2. Write the C++ code to display the even integers 2, 4, 6,
A program declares an int variable named evenNum and initializes it to 2. Write the C++ code to display the even integers 2, 4, 6, 8, and 10 on separate lines on the computer screen. Use the do while statement.
Step by Step Solution
3.44 Rating (167 Votes )
There are 3 Steps involved in it
do begin loop ... View full answer
Get step-by-step solutions from verified subject matter experts
