I am confused why this is and I cannot seem to find an answer why. This is from the assignment:
x=1, y=2, z=3;
z=(int)(x/y*3.0+z*012);
System.out.printf("%d %d %d", x, y, z);
Answer is :
1 2 30; << from eclipse
How I arrived here:
(1/2) = 0 * 3.0 = 0 + (z*012)= 30
. I wanted to say 36 but I guess it is 30 according to the IDE.