{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

in class prog1 - p print feet inches pounds p inches...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
# Body Mass Index # print "Enter your height" reply = raw_input("Feet: ") feet = int(reply) f reply = raw_input("inches: ") inches = int(reply) i print "Enter your weight" reply = raw_input("Pounds: ") pounds = int(reply)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: p print feet, inches, pounds p inches = (feet*12) + inches bmi = (pounds*703)/(inches*inches) b print "Your body mass index is",bmi p raw_input("\nPress enter to exit")...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online