Write an expression that evaluates to true if the value of the integer variable numberOfPrizes is divisible (with no remainder) by the integer variable numberOfParticipants . (Assume that numberOfParticipants is not zero.)
LANGUAGE: C++
CHALLENGE:
Write an expression that evaluates to true if the value of the integer variable numberOfPrizes is divisible (with no remainder) by the integer variable numberOfParticipants . (Assume that numberOfParticipants is not zero.)
SOLUTION:
numberOfPrizes % numberOfParticipants == 0
Posted in C++, Learn To Code