Why is 25 % 7 = 4? And 70 % 17 = 2? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is 25 % 7 = 4? And 70 % 17 = 2?

I am really confused with this one...

11th Aug 2016, 12:16 PM
Gianluca
2 Answers
+ 1
hi, mod ow gives reminder value of a division. Consider the first one where it is 25%7 now 7 three times equals 21. so the remainder is 4(as it cannot be divided further) next 70%17 17 four times equals 68 so remainder is 2(can't further divide). hope this clears your doubt:)
11th Aug 2016, 4:56 PM
Jyotirmoy Dey
Jyotirmoy Dey - avatar
0
@Jyotirmoy Dey Thank you so much! I'm not an english foreigner so that could have been my wrong thinking... Actually quite easy :)
11th Aug 2016, 5:23 PM
Gianluca