+ 2

>>>7%(5//2)=1

how is this possible can anyone give me full explanation.

26th Oct 2018, 5:32 PM
Nitish Kumar Upadhyay
Nitish Kumar Upadhyay - avatar
7 Respuestas
+ 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
26th Oct 2018, 5:45 PM
D_Stark
D_Stark - avatar
+ 8
5 // 2 = 2 (integer division) 7 % 2 = 1 (modulo division)
26th Oct 2018, 6:13 PM
Anna
Anna - avatar
+ 4
modulo division means the remainder. 7%2=2*3+1, so the remainder is 1.
2nd Nov 2018, 4:10 PM
ellen
+ 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.
8th Nov 2018, 6:37 PM
Kumar Vikram
Kumar Vikram - avatar
0
what is modulo division @anna can you pls explain?
1st Nov 2018, 3:24 PM
Rafeeq Rafee
Rafeeq Rafee - avatar
0
pls I don't understand integer division Anna...
5th Nov 2018, 6:01 PM
Ekene Kingsley
Ekene Kingsley - avatar
0
Anna how 7-2 is 1??
6th Dec 2021, 3:50 PM
blakethrx