Differences between revisions 4 and 5
Revision 4 as of 2014-03-20 02:13:56
Size: 333
Comment: mark code
Revision 5 as of 2014-03-20 02:16:29
Size: 335
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
{{ {{{
Line 29: Line 29:
}} }}}

from math import hypot

print "Pythagorean Theorem - Version 1.0"

print

print "What is the value of x?"

x = float(raw_input())

print

print "What is the value of y?"

y = float(raw_input())

print

print "The value of z is":

print hypot(x, y)

print

print "Press Enter to quit."

raw_input()

PythagoreanTheorem (last edited 2014-03-20 02:16:29 by DaleAthanasias)

Unable to edit the page? See the FrontPage for instructions.