- 1
I dont undertand this operation.
5 Respostas
0
The operation is correct because % is for reminders and 14 divided by 3 is 4 reminder 2
+ 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
0
The Q in Q&A stands for question. What exactly is the question? What operation/operators? Which language?
0
Sorry!.The language is php. Operation module %
$num1 =14;
$num2 =3;
echo $num1 % $num2
//result 2 (why, i dont undertand this number)
0
Thank