New course! Every coder should learn Generative AI!
Try a free lesson0
Explain about x modulus 4
2 Answers
+ 2
modulus is the remainder of dividing two numbers.
assuming x is going to be input that you receive then x % 4 will find the remainder.
for example 9 % 4 = 1
+ 1
thanks