Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

    public static void main(String[] args) {
        double d1 = 3, d2 = 4, d3 = 6;

        System.out.println("hypotenuse value of  d1 and d2 = " + StrictMath.hypot(d1, d2));

        System.out.println("hypotenuse value of d2 and d3 = " + StrictMath.hypot(d2, d3));
    }
}