What does the modulus operator do?

Question 3 options:

It subtracts one number from another

It divides two numbers and returns the remainder

It divides two numbers and returns the quotient

It adds two numbers together

1 answer

The modulus operator divides two numbers and returns the remainder.

So the correct option is:

It divides two numbers and returns the remainder.