diff --git a/83lv6T/83A7SP.js b/83lv6T/83A7SP.js new file mode 100644 index 0000000..a7eff5b --- /dev/null +++ b/83lv6T/83A7SP.js @@ -0,0 +1,9 @@ +function calculateHypotenuse(a, b) { + return Math.sqrt(a * a + b * b); +} + +// Example usage: +const sideA = 3; +const sideB = 4; +const hypotenuse = calculateHypotenuse(sideA, sideB); +console.log(`The hypotenuse of the right triangle is ${hypotenuse}`);