Question: C++ 1. If-else Statements Write a program that reads in an integer as input, then outputs POSITIVE if the integer is positive and NEGATIVE if
C++
1. If-else Statements Write a program that reads in an integer as input, then outputs "POSITIVE" if the integer is positive and "NEGATIVE" if it is negative, and "ODD" if the integer is odd and "EVEN" if the integer is even. 2. While Loops Modify the program from the previous exercise so that it keeps reading integers and classifying them as POSITIVE or NEGATIVE and ODD or EVEN until the user inputs 0, at which point the program ends. No classification should be produced for the 0. You may use a while loop or a do-while loop.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
