+ 1

How does % operator works?

11th Nov 2016, 3:18 PM
Mehdi Ibrahimov
Mehdi Ibrahimov - avatar
4 Respostas
+ 3
It will return remainder of that expression like 9%5=4
11th Nov 2016, 3:20 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 2
It gives a remainder when two integers are divided
11th Nov 2016, 3:26 PM
Andrew Kawalya
Andrew Kawalya - avatar
+ 1
It is called the modulo operator. It calculates the remainder of a division. Example: 13%4 is 1 since 4*3+1=13.
11th Nov 2016, 3:23 PM
Giulio Pellitta
Giulio Pellitta - avatar
0
Thanks guys!
11th Nov 2016, 4:10 PM
Mehdi Ibrahimov
Mehdi Ibrahimov - avatar