Question: Step 1: Copy this program into your C++ program editor, and compile it. Hopefully you will not get any error messages. Step 2: Run your

Step 1: Copy this program into your C++ program editor, and compile it. Hopefully you will not get any error messages. Step 2: Run your program type in "-3" to see what happens. Now try "4". Try several other input values to see what happens. You should see that the program prompts you for values until a positive number is entered. Step 3: Sadly, the code above is not checking for even numbers. As you know, the modulo operator % is used to give us the remainder after integer division. Hence, (num\%2 == 0) will be true for even numbers, and (num\% 2=1 ) will be true for odd numbers. Edit your program and replace ( num
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
