0

X%y?

How can I solve thus and where to use IT?

26th Apr 2022, 5:18 AM
Fabs Lp
3 Respuestas
+ 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 )
26th Apr 2022, 6:12 AM
NonStop CODING
NonStop CODING - avatar
+ 1
X/Y=Z+(X%Y) Z: Integer
26th Apr 2022, 6:28 AM
Zakaria Elalaoui
Zakaria Elalaoui - avatar
- 1
Gets you remainder of x/y Use it to check something is within some range
26th Apr 2022, 5:27 AM
Raul Ramirez
Raul Ramirez - avatar