7 lines
174 B
Groff
7 lines
174 B
Groff
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);
|