What is that means: This code shows that 6 goes into 20 three times | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
0

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

29th Mar 2019, 5:20 PM
Panda Thug
Panda Thug - avatar
8 Respostas
+ 5
can you please provide the code, there is nothing attached
29th Mar 2019, 5:28 PM
notqueued
notqueued - avatar
+ 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
notqueued - avatar
+ 2
/ is for division, % is for the remainder of a division
29th Mar 2019, 5:39 PM
notqueued
notqueued - avatar
+ 1
Thank you for your explications
29th Mar 2019, 5:37 PM
Panda Thug
Panda Thug - avatar
+ 1
Oh ! I see, than you very much !
29th Mar 2019, 5:40 PM
Panda Thug
Panda Thug - avatar
0
Ok, but can you please traduce the explication in French ?
29th Mar 2019, 5:29 PM
Panda Thug
Panda Thug - avatar
0
>>> 20 // 6 3
29th Mar 2019, 5:31 PM
Panda Thug
Panda Thug - avatar
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
Panda Thug - avatar