+ 2
Can you help me in this question
int x = 15; int y = 4; result = x/y; system.out.println(result) the result of the code
10 Answers
+ 7
3 cause it's an int
+ 6
The answer is 3. đ
+ 5
15/4 is 3.75 but an int will just cut the decimals without rounding, so the result is 3
+ 4
Well you're basically dividing x/y (15/4).
+ 4
answer is 3.75. but system cut 0.75. answer is 3.
+ 2
The answer is 3 because result is int
+ 1
the answer is 3
0
3 because the data type is int.
0
undefined