From 653301e509479c1407f80fd6728b6b47c07d86b4 Mon Sep 17 00:00:00 2001 From: Rafael Ortiz Date: Wed, 12 Sep 2007 23:45:57 +0000 Subject: Pythagoras --- (limited to 'data') 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 -- cgit v0.9.1