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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!