This commit is contained in:
Karan
2021-11-30 17:22:16 +05:30
parent cc68449169
commit b40c1fd1f7
5 changed files with 0 additions and 0 deletions
+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);