โ Back to If Statements
Question 374
At Least One Even
At Least One Even
Read two integersaandb. If AT LEAST ONE of them is even, printAt least one even; otherwise (both are odd) printBoth odd. For example, given the input3 4, the program prints: At least one even Use the||operator.
Expected Output:
At least one even
Topics:
If Statements
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.