C-17-Q119mediumsingle_mcq
Which condition correctly checks if n is divisible by 4?
Which condition correctly checks if n is divisible by 4?
- a
n / 4 == 0 - b
n % 4 == 0 - c
n // 4 != 0 - d
n + 4 == 0
ব্যাখ্যা
A number n is divisible by exactly when the remainder of divided by is zero, which is tested with n % 4 == 0.