Drag the edges to resize the window.

Code Editor
Introduction to Java

Math: %

Good work! Let's explore one more special math operator known as modulo.

  1. 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.

Report a Bug
If you see a bug or any other issue with this page, please report it here.