Question: Write a program that asks the user to enter an integer. The program should display Positive if the number is greater than 0, Negative if
Write a program that asks the user to enter an integer. The program should display “Positive” if the number is greater than 0, “Negative” if the number is less than 0, and “Zero” if the number is equal to 0. The program should then display “Even” if the number is even, and “Odd” if the number is odd.
Step by Step Solution
3.49 Rating (162 Votes )
There are 3 Steps involved in it
Prompt the user to enter an integer number intinputEnter an integer Determin... View full answer
Get step-by-step solutions from verified subject matter experts
