CJCoding With Joseph

Positive and Even

Read an integer with scanf. If the number is BOTH positive (greater than 0) AND even, print exactly:

Yes

Otherwise print exactly:

No

No trailing newline. For input 6 the output is Yes; for input -4 the output is No (it is even but not positive).

Expected Output:

Yes
Topics:
If Statements
๐Ÿ“ฅ Auto-Input:
6\n
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 (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.