Write an expression that evaluates to true if the value of the integer variable x is divisible (with no remainder) by the integer variable y. (Assume that y is not zero.)

Write an expression  that evaluates  to true  if the value  of the integer  variable  x is divisible (with no remainder) by the integer  variable  y. (Assume  that y is not zero.)

LANGUAGE: C++

CHALLENGE:

Write an expression  that evaluates  to true  if the value  of the integer  variable  x is divisible (with no remainder) by the integer  variable  y. (Assume  that y is not zero.)

SOLUTION:


(x % y == 0)

Add comment