Online Java Compiler By
JavaTpoint.com
public class HypotExample1 { public static void main(String[] args) { double a = 8; double b = 6; // Return the value of sqrt(a
2
+ b
2
) System.out.println(Math.hypot(a, b)); } }
Output