CJCoding With Joseph

At Least One Even

Read two integers a and b. If AT LEAST ONE of them is even, print At least one even; otherwise (both are odd) print Both odd.

For example, given the input 3 4, the program prints:

At least one even

Use the || operator.

Expected Output:

At least one even
Topics:
If Statements
๐Ÿ“ฅ Auto-Input:
3 4
This input is automatically fed to your program's stdin
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.