0
Help me Can you explain the (%) sign in detail in java
...
4 Respuestas
+ 5
% is a binary operator which is used for calculate remainder of two numbers.
E.g. 13%5 equals 3.
+ 3
The operator of the remainder of the number %
(for example: 17 % 3 = 2)
1. Take the nearest number when divided by 3 would be zero. That's apparently 15
2. Subtract 15 from 17 and the result is your answer.
+ 3
Thanks 👍
+ 2
Thank you ☺️💞