Files
JavaScript-from-Beginner-to…/Chapter 02/Exercise_2.3.js
T
2021-11-30 17:22:16 +05:30

7 lines
174 B
JavaScript
Vendored

let a = window.prompt("Value 1?");
let b = window.prompt("Value 2?");
a = Number(a);
b = Number(b);
let hypotenuseVal = ((a * a) + (b * b))**0.5;
console.log(hypotenuseVal);