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.)

1
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.)

LANGUAGE: C++

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 % widthOfBook

One comment

Add comment