Does anyone know why 3 % 7 = 3 ? please explain | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does anyone know why 3 % 7 = 3 ? please explain

logaritm arimath

8th Mar 2018, 8:59 AM
Dicky Fajar Darmawan
Dicky Fajar Darmawan - avatar
6 Answers
+ 6
3 % 7 means what is the remainder when 3 divides 7. 3 / 7 = 0 remainder 3. The remainder is 3 so, 3 % 7 = 3
8th Mar 2018, 9:28 AM
David Akhihiero
David Akhihiero - avatar
+ 4
3 / 7 = 0 and 3 % 7 = 3
8th Mar 2018, 9:47 AM
David Akhihiero
David Akhihiero - avatar
+ 3
3/7 gives you quotient while 3%7 gives you remainder. As you know 7 doesn't divide 3 so quotient = 0 and remainder = 3
8th Mar 2018, 9:58 AM
Dinesh Banjara
Dinesh Banjara - avatar
+ 2
Please give your full question,it seems incomplete
8th Mar 2018, 9:19 AM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
+ 2
/ for division 7/2=3 % for remainder after division 7%2=1
8th Mar 2018, 9:49 AM
‎ ‏‏‎Anonymous Guy
0
so what's different 3 / 7 and 3 % 7 ?
8th Mar 2018, 9:47 AM
Dicky Fajar Darmawan
Dicky Fajar Darmawan - avatar