summaryrefslogtreecommitdiff
path: root/comp/work/4/pythagorus
diff options
context:
space:
mode:
Diffstat (limited to 'comp/work/4/pythagorus')
-rwxr-xr-xcomp/work/4/pythagorus6
1 files changed, 6 insertions, 0 deletions
diff --git a/comp/work/4/pythagorus b/comp/work/4/pythagorus
new file mode 100755
index 0000000..d9c5cdc
--- /dev/null
+++ b/comp/work/4/pythagorus
@@ -0,0 +1,6 @@
+#!/usr/bin/python
+base = float(input("base: "))
+height = float(input("height: "))
+
+hyp = ((base ** 2) + (height ** 2)) ** 0.5
+print(hyp)