- 2
What is 22%5
2 Answers
+ 1
It calculates the remainder
22%5 is 2
22 = (5 * 4) + 2
https://www.sololearn.com/learn/Ruby/2712/?ref=app
0
You can easily check it on your ide.
By the way in python this(%) is modulo operator give us remainder.
22 %5=2.