Given:
Which expression when added at line 1 will produce the output of 1.17?
A. float z = (float)(Math.round((float)x/y*100)/100);
B. float z = Math.round((int)(x/y),2);
C. float z = Math.round((float)x/y,2);
D. float z = Math.round((float)x/y*100)/(float)100;
public static void main(String[] args) {
byte x = 7, y = 6;
float z = Math.round((float)x/y*100)/(float)100;
System.out.println(z);
}
D
Correct Answer is D
there are no output 1.17