- 1
Error on this question?
shouldn't the x value in this question be 12?
5 Antworten
+ 1
Where is the code?
0
int x=15;int y=4 ;
int result= x/y;
System.out.println(result);
question is what is the result
answer is 3?
0
Answer is 3
0
Luis A. Black Silva well it shouldn't be because 15 divided by 4 isn't 3
0
but in an integer division, it does. 15/4=3.75, but as long as it's an integer division, every thing after the dot (including the dot) gets neglected. So 15/4=3