0

What would be the output ?

var x = 23; var y = 17; var z = (x %y)*6/4;

7th Dec 2017, 1:33 PM
josue tutor
josue tutor - avatar
4 Antworten
+ 9
There is no output.
7th Dec 2017, 1:37 PM
qwerty
qwerty - avatar
0
9
7th Dec 2017, 1:38 PM
josue tutor
josue tutor - avatar
0
It is 6 * 6/4 where first 6 comes from mod of two numbers. Then I think 6/4 will be evaluated first. Hence z=9
7th Dec 2017, 3:55 PM
ABDUL MANAN
ABDUL MANAN - avatar
0
(23%17)=6*6=36/4=9;
7th Dec 2017, 6:33 PM
Capt Zero .!. °_° .!.
Capt Zero  .!. °_° .!. - avatar