Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@laptop.org>2007-09-12 23:45:57 (GMT)
committer Rafael Ortiz <rafael@laptop.org>2007-09-12 23:45:57 (GMT)
commit653301e509479c1407f80fd6728b6b47c07d86b4 (patch)
tree3a5b1a20bceb4c36539bc39780396a0640091e85 /data
parent19476149d7728665844a45b3dc3cd7bcad5430ec (diff)
Pythagoras
Diffstat (limited to 'data')
-rw-r--r--data/math/Pythagoras10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/math/Pythagoras b/data/math/Pythagoras
new file mode 100644
index 0000000..fb4dbd8
--- /dev/null
+++ b/data/math/Pythagoras
@@ -0,0 +1,10 @@
+import math
+from math import sqrt
+
+print "This is the Pythagoras Theorem"
+a=float(raw_input("Type a ="))
+b=float(raw_input("Type b ="))
+
+c=sqrt((a*a)+(b*b))
+
+print "c =",c