int k = 50; int a = (k/5) * k + (k/2) % 2; System.out.print(a); // it prints out 501 // say that I calculated (k/5)*k+(k/2) already together which is 525 so int a = 525 % 2; System.out.print(a); // it prints out 1 Why is the first answer different than my second one?