Can anyone please tell what is modulo | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

Can anyone please tell what is modulo

Sign of modulo is%

1st Apr 2021, 1:23 PM
purveshKolhe
purveshKolhe - avatar
3 Answers
+ 7
Purvesh Kolhe Modulo returns reminder value. For example: 7 % 5 = 2 10 % 5 = 0
1st Apr 2021, 1:26 PM
A͢J
A͢J - avatar
+ 6
Thanks for your answer
1st Apr 2021, 1:27 PM
purveshKolhe
purveshKolhe - avatar
+ 5
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.
1st Apr 2021, 11:22 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar