0

What is the output of 9% 18

18th Dec 2016, 3:05 PM
ajit kumar burnwal
ajit kumar burnwal - avatar
12 Réponses
+ 6
9 Remainder operator will return first number if second number is bigger: 9%18 = 9 5%7 = 5 3%4 = 3
18th Dec 2016, 3:06 PM
Vladimir Honcharenko
Vladimir Honcharenko - avatar
+ 2
Try to divide 9 by 18. The quotient is... 0... so the remainder is... ?
18th Dec 2016, 6:55 PM
Álvaro
+ 1
@Vladimir Honcharenko is right!
18th Dec 2016, 4:10 PM
Kamil
Kamil - avatar
0
9, becoz % operator returns the remainder so 9 % 18 = 9
18th Dec 2016, 3:09 PM
Ravi Kumar
Ravi Kumar - avatar
0
9
10th Jan 2017, 9:51 AM
Alvaro Wenceslao Ponce
Alvaro Wenceslao Ponce - avatar
- 1
why??
18th Dec 2016, 3:31 PM
Ravi Kumar
Ravi Kumar - avatar
- 1
the answer is 9 .. this is very basic even a beginner like me can easy answer without coding or using calculator.
22nd Dec 2016, 10:38 PM
eli
- 1
0
3rd Jan 2017, 10:22 PM
Dull Bananas
Dull Bananas - avatar
- 2
not satisfactory
18th Dec 2016, 3:26 PM
ajit kumar burnwal
ajit kumar burnwal - avatar
- 2
0
1st Jan 2017, 2:27 PM
TheCaveMan
TheCaveMan - avatar
- 2
1/2. 0.5. 1 or 0
3rd Jan 2017, 10:14 PM
TheCaveMan
TheCaveMan - avatar