Differences between revisions 10 and 11
Revision 10 as of 2005-05-24 13:06:21
Size: 553
Editor: squid
Comment: changed Download
Revision 11 as of 2008-11-15 14:00:13
Size: 553
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

HypotIO

This program creates an I/O interface for the hypot(x, y) function of the math module. It is very simple.

Code

{{{from math import hypot

print "HypotIO - Written by JAM in Python 2.4.1" 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()}}}

Download

The download for this program is now available. It is attached as HypotIO.py.

JAM/Code/HypotIO (last edited 2008-11-15 14:00:13 by localhost)

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