+ 2
Can anybody tell me something about modulus operator?
How modulus operator works and what is its use?
1 Resposta
+ 4
Modulus operator is used to find remainder
Ex:- 3%2=1 because remainder is 1 when 3 is divided by 2
4%2=0 because 4 is exactly divided by 2. So remainder is 0