
report at bugs
Dec 1, 2009, 12:38 PM
Post #1 of 2
(147 views)
Permalink
|
New submission from Angel <AngelAssasin187 [at] hotmail>: # Area calculation program print "Show Area" print "----------------------" print # Print out the menu: print "Please select a shape:" print "1 Rectangle" print "2 Circle" # Get the user's choice: shape = input ("> ") # Calculate the area: if shape == 1: height = input ("Please enter the height: ") width = input ("Please enter the width: ") area = height*width print "The area is", area else: radius = input ("Please enter the radius: ") area = 3.14* (radius**2) print "The area is", area ---------- components: Windows messages: 95871 nosy: Fallen severity: normal status: open title: Given versions: 3rd party _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue7421> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|