Computer Science, asked by bibirasida24, 3 months ago

e) double y=2.0,z=3.0;
System.out.println(Math.pow(Math.max(y,z),2);​

Answers

Answered by atrs7391
0

Answer:

The output will be: 9.0

Explanation:

System.out.println(Math.pow(Math.max(y,z),2);​

Math.max = 3.0, as y=2.0 and z = 3.0 and max is y

Math.pow = Math.max to the power 2 i.e. 3.0 power 2 = 9.0

Similar questions