0
X%y?
How can I solve thus and where to use IT?
3 Answers
+ 1
x%y or
num1 % num2
% operator is used to get the remainder when we divide num1 by num2
for example
5 % 2 will return 1 but
5 / 2 will return 2.5 ( consider numbers to be float type )
+ 1
X/Y=Z+(X%Y)
Z: Integer
- 1
Gets you remainder of x/y
Use it to check something is within some range