Concept

How does Java’s integer remainder operator work?

ComputerScienceOne / Basic I/O

"Java also supports the integer remainder operator using the % symbol. This operator gives the remainder of the result of dividing two integers. Examples: 1 int x; 2 3 x = 10 % 5; //x is 0 4 x = 10 % 3; //x is 1 5 x = 29 % 5; //x is 4"

Related Ideas

How does Java’s integer remainder operator work? | ComputerScienceOne | Bifalgorithm | Bifalgorithm