why 26%6 = 2 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

why 26%6 = 2

why 26%6 = 6?

15th Sep 2016, 10:44 AM
이병현
이병현 - avatar
25 Answers
+ 20
The modulus (%) is an arithmatic that first substracts 6 from 26 as much as posible through, like this: 26-6=20; 20-6=14; 14-6=8; 8-6=2; What's left is the modulus.
15th Sep 2016, 11:48 AM
yannick1124
yannick1124 - avatar
+ 9
Because 26 is 6*4 + 2.
15th Sep 2016, 10:52 AM
Zen
Zen - avatar
+ 7
divide 26 by 6 the remainder will be 2
15th Sep 2016, 3:58 PM
Sasirekha Kandasamy
Sasirekha Kandasamy - avatar
+ 3
Because 6*4=24 only so the remaining part is 2 so this happen
24th Oct 2016, 8:14 AM
Bibek K. Sah
Bibek K. Sah - avatar
+ 2
here modulus is used that means when ybou devide 26 by 6 you will take remainder as answer instead of quotient. here also 26/6 gives remainder 2
25th Oct 2016, 7:05 AM
priyam chopra
priyam chopra - avatar
+ 1
I made something earlier that explains how it works, you should search for "restmath".
15th Sep 2016, 11:51 AM
yannick1124
yannick1124 - avatar
+ 1
because 6×4+2=26 and it's remainder is 2.
22nd Sep 2016, 6:45 PM
ABHISHEK GOEL
ABHISHEK GOEL - avatar
+ 1
26=(6*4)+2
23rd Sep 2016, 7:55 AM
MOHAMMAD SH
MOHAMMAD SH - avatar
+ 1
4*6=24 26-24=2 5*6=🚫
24th Sep 2016, 4:14 PM
Harut Mkrtchyan
Harut Mkrtchyan - avatar
+ 1
26/6 last remindor is 2 26%6 = 2
7th Dec 2016, 11:17 AM
kapil mulchandani
kapil mulchandani - avatar
+ 1
the % sign gives the remainder of x/y
10th Dec 2016, 8:29 PM
Pankaj Gautam
Pankaj Gautam - avatar
+ 1
{6 goes into 26 (4 times) with the remainder being 2}
12th Dec 2016, 1:59 AM
‎‏‪4CORNERS “WALLIE”‬‏‎
‎‏‪4CORNERS “WALLIE”‬‏‎ - avatar
+ 1
(26÷6<4)=26%6=2
27th Dec 2016, 1:41 PM
‎‏‪4CORNERS “WALLIE”‬‏‎
‎‏‪4CORNERS “WALLIE”‬‏‎ - avatar
0
26/6=4 6*4=24 26-24=2 the answer is 2
19th Sep 2016, 1:29 PM
Dorthe Knight
0
Divide 26 by 6 after that remainder will be 2 that's actual process.
21st Sep 2016, 7:28 AM
pankaj choyal
pankaj choyal - avatar
0
I got it but now loop is hankering after an elaboration. plzz fulfilled it
24th Sep 2016, 4:30 PM
Ahmed Kamal
Ahmed Kamal - avatar
0
6*4+2 =26 where did you guys get the 4?
2nd Oct 2016, 11:15 PM
Sam De Gracia
Sam De Gracia - avatar
0
Getting 26%4 means to get the remainder of the division 26/4 which is 2 cause that's what's left after obtaining almost 26 by multiplying 4 times 6 = 24. If we'd multiply by 7 it exceeds 26 so we must stick to 6 with 2 left over as the result of the operation.
4th Oct 2016, 8:52 PM
Pere
0
Because 2 is the remainder e.g how many times can you subtract 6 from 26 answer 4 times leaving a remainder of 2.
18th Nov 2016, 10:28 AM
Nigel Smith
Nigel Smith - avatar
0
simply 26%6 = 2 means 6 * 4 + (2) then the rest of the multiplication is 2 and it's the result
8th Dec 2016, 3:30 PM
Whisper in silence