0

What is Modulus

Alot of people say it remainder but what they mean by remainder . The only thing that I know about modulus it give you the division of a by b is that correct .

20th Jan 2019, 12:45 AM
7_7
7_7 - avatar
1 Réponse
+ 2
hi 7_7 the modulus opperator means the remainder or what is left over. e.g int x = 15; int y = 4; Console.WriteLine(x % y); the result will be 3 this is 3 because 3 cannot be divide by 4 equal i hope this helps
20th Jan 2019, 12:52 AM
Ollie Q
Ollie Q - avatar