0
What is that means: This code shows that 6 goes into 20 three times
8 Answers
+ 5
can you please provide the code, there is nothing attached
+ 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.
+ 2
/ is for division, % is for the remainder of a division
+ 1
Thank you for your explications
+ 1
Oh ! I see, than you very much !
0
Ok, but can you please traduce the explication in French ?
0
>>> 20 // 6
3
0
Is that means that to execute a division we have to use this sign: % ?
If I'm right, what that sign means: // ?