CJCoding With Joseph
15free / daySign inCreate account

Divisible by Three

This program uses a fixed value instead of reading input. A variable named number is already set to 27. Using an if/else statement, print Divisible by 3 when the number divides evenly by 3, or Not divisible by 3 when it does not. A number divides evenly by 3 when the remainder of number % 3 is 0.

Expected Output:

Divisible by 3

= newline. No newline after the last line.

Hints3 available
Topics:
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.