0
What is % operator in java?
2 odpowiedzi
+ 3
It's main modulus in most of the language.
+ 2
% is the modulo operation and it displays the remainder.
4 % 2 // output 0
3 % 2 // output 1
=> 3 / 2 = 1
=> 1 * 2 = 2
=> 2 + x = 3
=> x = 1
hope it is clear what i mean and whats the % is