← Back to If Statements
Question 327
Divisible by 4 and 6
Divisible by 4 and 6
Read an integer withscanf. If it is divisible by BOTH4and6(no remainder for either), print exactly the output shown in Expected Output. Otherwise print exactly: No No trailing newline. For input24the output isYes; for input8the output isNo(divisible by 4 but not by 6).
Expected Output:
Yes= newline. No newline after the last line.
Hints3 available
Sign in to use hintsTopics:
If Statements
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · 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.