Compute z = x - sqrt(y) in Java
Check the final answer first, then review the worked steps.
Check the final answer first, then review the worked steps.
z = x - Math.sqrt(y);
Math.sqrt() method to calculate the square root of $y$.z = x - Math.sqrt(y);