in class prog1

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

This note was uploaded on 10/13/2009 for the course ECS 10 taught by Professor Amenta during the Spring '07 term at UC Davis.

Ask a homework question - tutors are online