Write an expression that evaluates to true if the value of the integer variable widthOfBox is not evenly divisible by the integer variable widthOfBook. (Assume that widthOfBook is not zero.

Write an expression that evaluates to true if the value of the integer variable widthOfBox is not evenly divisible by the integer variable widthOfBook.  (Assume that widthOfBook is not zero.

LANGUAGE: Visual Basic

CHALLENGE:

Write an expression that evaluates to true if the value of the integer variable widthOfBox is not evenly divisible by the integer variable widthOfBook. (Assume that widthOfBook is not zero. Note: evenly divisible means divisible without a non-zero remainder.)

SOLUTION:

widthOfBox MOD widthOfBook <> 0


Add comment