JavaScript

Functions

function hypotenuse(a,b){
        function square(x) {
                return x*x;
        }
        return Math.sqrt(square(a) + square(b));
}

José M. Vidal .

39 of 65