What is that means: This code shows that 6 goes into 20 three times | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
0

# What is that means: This code shows that 6 goes into 20 three times

29th Mar 2019, 5:20 PM
Panda Thug
8 Réponses
+ 5
can you please provide the code, there is nothing attached
29th Mar 2019, 5:28 PM
notqueued
+ 2
i am sorry, i dont know french that well. now that i read the question better i can say this from the start. you have the division operator. when you write a code that outputs to the screen the result of that division indeed it will be the case. 20 / 6 = 3. you have the modulus operator that gives the remainder of a division. for example: 20 % 3 = 2. i hope this helped you.
29th Mar 2019, 5:34 PM
notqueued
+ 2
/ is for division, % is for the remainder of a division
29th Mar 2019, 5:39 PM
notqueued
+ 1
29th Mar 2019, 5:37 PM
Panda Thug
+ 1
Oh ! I see, than you very much !
29th Mar 2019, 5:40 PM
Panda Thug
0
29th Mar 2019, 5:29 PM
Panda Thug
0
>>> 20 // 6 3
29th Mar 2019, 5:31 PM
Panda Thug
0
Is that means that to execute a division we have to use this sign: % ? If I'm right, what that sign means: // ?
29th Mar 2019, 5:37 PM
Panda Thug
Aujourd'hui en vedette
c++ help