Skip to content

Commit cbb1cfe

Browse files
committed
Create 09_hypotenuse.py
1 parent 5d37dcc commit cbb1cfe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

2-variables/09_hypotenuse.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Pythagorean Theroem 📐
2+
# Codédex
3+
4+
a = int(input("Enter a: "))
5+
b = int(input("Enter b: "))
6+
7+
c = (a*a + b*b)**0.5
8+
9+
print(c)

0 commit comments

Comments
 (0)