Write an expression that evaluates to true if the value of the integer variable widthOfBox is not divisible by the value of the integer variable widthOfBook. Assume that widthOfBook is not zero. (“Not divisible” means has a remainder.)

LANGUAGE: JAVA

CHALLENGE:
Write an expression that evaluates to true if the value of the integer variable widthOfBox is not divisible by the value of the integer variable widthOfBook. Assume that widthOfBook is not zero. (“Not divisible” means has a remainder.)

SOLUTION:

LANGUAGE: JAVA

CHALLENGE:
Write an expression that evaluates to true if the value of the integer variable widthOfBox is not divisible by the value of the integer variable widthOfBook. Assume that widthOfBook is not zero. (“Not divisible” means has a remainder.)

SOLUTION:

widthOfBox % widthOfBook != 0