+ 2

Can anybody tell me something about modulus operator?

How modulus operator works and what is its use?

5th Oct 2019, 4:12 AM
Amresh
Amresh - avatar
1 Réponse
+ 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
5th Oct 2019, 4:25 AM
Nandini