โ Back to If Statements
Question 257
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: Yes 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
Topics:
If Statements
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.