- 1

I dont undertand this operation.

30th May 2020, 11:54 AM
Lucas Calle
Lucas Calle - avatar
5 Respostas
0
The operation is correct because % is for reminders and 14 divided by 3 is 4 reminder 2
30th May 2020, 12:21 PM
KATEREGGA ASHIRAF
+ 1
The modulo operation (% in any language I know) is the remainder of the integer dividion operation. If you (Integer) divide 14 by 3 the result is 4 and remainder 2. Therefore 14%3 is 2
30th May 2020, 12:10 PM
Michi
Michi - avatar
0
The Q in Q&A stands for question. What exactly is the question? What operation/operators? Which language?
30th May 2020, 12:03 PM
Michi
Michi - avatar
0
Sorry!.The language is php. Operation module % $num1 =14; $num2 =3; echo $num1 % $num2 //result 2 (why, i dont undertand this number)
30th May 2020, 12:06 PM
Lucas Calle
Lucas Calle - avatar
0
Thank
30th May 2020, 12:46 PM
Lucas Calle
Lucas Calle - avatar