All pastes #901989 Raw Edit

Untitled

public text v1 · immutable
·published 2008-02-13 02:04 UTC
rendered paste body
import 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)));

    }
}