I think I missed something. What does the % symbol do? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

I think I missed something. What does the % symbol do?

2nd Aug 2016, 8:57 AM
computatoe
computatoe  - avatar
3 Respostas
+ 4
take this for example: 9%4 = 1 you can fit two 4s in 9 and the remainder is 1
3rd Aug 2016, 5:33 PM
mehmeh
mehmeh - avatar
+ 3
it's the remainder operator
3rd Aug 2016, 5:32 PM
mehmeh
mehmeh - avatar
+ 1
also called modulus or modulob sometimes
6th Aug 2016, 8:09 PM
ā€Žā€ā€Žā€ā€ŽJoe
ā€Žā€ā€Žā€ā€ŽJoe - avatar