+ 2
>>>7%(5//2)=1
how is this possible can anyone give me full explanation.
7 odpowiedzi
+ 1
maby 5 is escaped so its 7%2 which equals 1 i cant be certain tho as i dont know what language this is for
+ 8
5 // 2 = 2 (integer division)
7 % 2 = 1 (modulo division)
+ 4
modulo division means the remainder. 7%2=2*3+1, so the remainder is 1.
+ 2
5 divided by 2. output is 2 and remainder is 1. now 7 divided by 2. output will be 3 and remainder will be 1. as % is modulus and modulus is remainder so answer will be 1.
0
what is modulo division @anna can you pls explain?
0
pls I don't understand integer division Anna...
0
Anna how 7-2 is 1??