+ 1
Primitive Operators
The question on this part of java says 15/4 which would = 3.75 meaning it would round up to 4 but the answer is 3 any reason why this is?
2 Respostas
+ 3
ints don't round, they truncate.
+ 1
Why do you think it should? When you divide integers, the remainder is simply discarded.