This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Fallen
Recipients Fallen
Date 2009-12-01.20:38:18
SpamBayes Score 0.011130858
Marked as misclassified No
Message-id <1259699900.65.0.917773052949.issue7421@psf.upfronthosting.co.za>
In-reply-to
Content
# 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&apos;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
History
Date User Action Args
2009-12-01 20:38:20Fallensetrecipients: + Fallen
2009-12-01 20:38:20Fallensetmessageid: <1259699900.65.0.917773052949.issue7421@psf.upfronthosting.co.za>
2009-12-01 20:38:19Fallenlinkissue7421 messages
2009-12-01 20:38:18Fallencreate