Write a C++ program that accepts an integer from the user and determines if the given integer is even and positive.
Comparison operators
Even and positive
Report a typo
Sample Input 1:
2Sample Output 1:
2 is a positive even number.Sample Input 2:
-2Sample Output 2:
-2 is not a positive even number.Sample Input 3:
3Sample Output 3:
3 is not a positive even number.Sample Input 4:
-3Sample Output 4:
-3 is not a positive even number.Write a program in C++
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.