what is the Modulo operator?

Modulo is a math operation that finds the remainder when one integer is divided by another. So the modules is a operator. It also called modulo.


14/3 = 4.6666666667

The number after the decimal shows that we have some remainder. In comparison to 12/3 = 4.0 which shows we have no remainder.

Next step, what is the remainder?

so to find the remainder we will look when a number (smaller than 14) has no remainder, in this case, the biggest number smaller than 14 that has no remainder when you divide it by 3 is => 12.

If you found this number, then you can check what the difference is between your number (14) and that number (12). That is just 14-12=2

So the modules of 14 is 2


package ArithmeticOperations;

public class Modulus {
	void start() {
		int sum = 14 % 3;

	public static void main(String[] args) {
		new Modulus().start();

The output will be: 2