Exercise 2.3

This commit is contained in:
Karan
2021-11-24 19:13:56 +05:30
committed by GitHub
parent 19697d0397
commit e315c2e95b
+6
View File
@@ -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);