Untitled
public text v1 · immutableimport java.awt.*;
import hsa.Console;
public class Triangle
{
static Console c;
public static void main (String[] args)
{
c = new Console ();
double sideA, sideB, hypotenuse;
c.println ("Please enter the first side length of the triangle.");
sideA = c.readDouble ();
c.println ("Please enter the second side length of the triangle.");
sideB = c.readDouble ();
c.println ("The length of the hypotenuse is = " + Math.sqrt ((Math.pow (sideA) + (sideB)));
}
}