Hi !the question on modulus fails my know how because you are dividing 9 by 2 thought it was to be divided by 7 so that the modulus will be 2 kindly explain. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Hi !the question on modulus fails my know how because you are dividing 9 by 2 thought it was to be divided by 7 so that the modulus will be 2 kindly explain.

11th Sep 2016, 8:59 PM
Sos Peter
Sos Peter - avatar
5 Réponses
+ 3
when you divide 9 by 7 means 1X7=7 , 2X7=14 and 9-7=2. which indicates dividend result is 1 and modulus is 2
15th Sep 2016, 5:20 PM
MD. WOALID HOSSAIN
MD. WOALID HOSSAIN - avatar
0
9 divided by 2 so the result will be 4 and reminder is 1. So modulas gives the reminder of division that is 1 2*4=8; 9-8=1
12th Sep 2016, 4:53 AM
Hiral
0
деление с остатком придурок.
14th Sep 2016, 11:45 PM
CossGrow
0
9%2=1 because 9/2=4 so here the remainder is 1.
25th Sep 2016, 6:54 AM
Sayan Dey
Sayan Dey - avatar
0
it will be 1
7th Oct 2016, 7:53 PM
Saumya Joshi
Saumya Joshi - avatar