I don’t understand this math, can anyone please help me
The modulo operator - represented in Java by the % symbol - returns the remainder of dividing two numbers.
For example, 15 % 6 will return the value of 3, because that is the remainder left over after dividing 15 by 6.
My Task is this :
Use the modulo operator to set the variable myRemainder equal to 2. You can use any two numbers that return a remainder value of 2.
and when I type 20 % 10, then its showing me value ‘0’