0

17%3 = 2 ?!

Im not a math genius. And i now what % is. But can you explain me what is the meaning of 17%3 = 2

21st Jul 2016, 10:30 AM
Andreas Kilian
Andreas Kilian - avatar
4 ответов
+ 4
% is modulo operator, and what it means is to return remainder after division. So the answer for modulo is the remainder. 3 divides 17 , 5 times with a remainder of 2 17 % 3 = 5 remainder 2 and since the remainder is the answer, hence 17% 3 = 2
21st Jul 2016, 10:51 AM
Benneth Yankey
Benneth Yankey - avatar
+ 3
17 % 3 = 5 17 : 3 ≈ 5 5 * 3 = 15 2 = 17-15
21st Jul 2016, 10:00 PM
Mikhail Semin
Mikhail Semin - avatar
+ 2
X%Y=Z means the remainder when x is divided by y is z. So 17%3=15/3 remainder =17-15=2 If you understood please leave a mark up,If you didn't email me (my email is ivansing23@gmail.com)
22nd Jul 2016, 4:55 AM
Ivan
Ivan - avatar
+ 1
Haha, amazing! Thanks
21st Jul 2016, 11:03 AM
Andreas Kilian
Andreas Kilian - avatar