Computer Science for IGCSE & O level - Programming (Section 7 - No. 46)

What is the purpose of the modulus operator (%)?
To perform division.
To find the remainder of a division.
To multiply two numbers.
To calculate the exponent of a number.

Explanation

The modulus operator returns the remainder after integer division.

Comments (0)

Advertisement