[New-bugs-announce] [issue7421] Given
Angel
report at bugs.python.org
Tue Dec 1 21:38:20 CET 2009
New submission from Angel <AngelAssasin187 at hotmail.com>:
# 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.python.org>
<http://bugs.python.org/issue7421>
_______________________________________
More information about the New-bugs-announce
mailing list