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 .

1 Answer

+ 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