Wednesday, 15 February 2017

Math : hypot





public class HypotMethod {

        public static void main(String[] args) {

            // get two double numbers            double x = 60984.1;            double y = -497.99;
            // call hypot and print the result            System.out.println("Math.hypot(" + x + "," + y + ")=" + Math.hypot(x, y));        }
}

No comments:

Post a Comment