Question: C++ Write a program that asks the user to input three different integers. Write a function called numberStyle for this program that will accept each
C++
Write a program that asks the user to input three different integers. Write a function called numberStyle for this program that will accept each integer (one at a time) and return the following:
If the integer is even, return 1
If the integer is odd, return -1
If the integer is zero, return 0
In main, after calling the function output the appropriate message describing the integers.
Sample run:
Enter 3 integers separated by a space and press
Integer 10 is even
Integer 5 is odd
Integer 0 is zero
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
