Exercise 2.3
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
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);
|
||||||
Reference in New Issue
Block a user