In "The Modulus" I don't understand on how to calculate that. Could somebody help me figure this out? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

In "The Modulus" I don't understand on how to calculate that. Could somebody help me figure this out?

The Modulus

13th Oct 2018, 7:15 PM
Javon White
Javon White - avatar
5 ответов
+ 9
It gives you the remainder rather than the quotient.
13th Oct 2018, 7:29 PM
MDJ_
MDJ_ - avatar
+ 7
Modulo is the remainder of the quotient. Example: 2 ÷ 7 Modulo is 1 since 2 ÷ 7 is equal to 3 BUT it has an extra number which is 1.
13th Oct 2018, 11:20 PM
ᴰᴼᴹᴵᴺᴼ
ᴰᴼᴹᴵᴺᴼ - avatar
+ 7
Domino I think you reversed 2 and 7?? Shouldn't it be 7%2??? for 2%7=2
14th Oct 2018, 7:04 AM
Roneel
Roneel - avatar
+ 4
15th Oct 2018, 10:24 PM
Roneel
Roneel - avatar
+ 3
If you do 5%2, 5=2(2) +1 here 1 is modulo. For 37%15= 15(2) +7
13th Oct 2018, 7:52 PM
Roneel
Roneel - avatar