0

Help me Can you explain the (%) sign in detail in java

...

10th Oct 2022, 11:56 AM
Hadi Keleş
4 Réponses
+ 5
% is a binary operator which is used for calculate remainder of two numbers. E.g. 13%5 equals 3.
10th Oct 2022, 12:58 PM
‎محمدرضا هاشم زاده‎
‎محمدرضا هاشم زاده‎ - avatar
+ 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.
10th Oct 2022, 1:47 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 3
Thanks 👍
10th Oct 2022, 2:11 PM
Hadi Keleş
+ 2
Thank you ☺️💞
10th Oct 2022, 1:18 PM
Hadi Keleş