Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

py bmi

#simple BMI calculator
x = int(input("Enter Weight: "))
y = float(input("Enter Height: "))
z = x/y**2
if z<18.5:
    print("Underweight")
elif z==18.5 or z<25:
    print("Normal")
elif z==25 or z<30:
    print("Overweight")
else:
    print("Obesity")
 
PREVIOUS NEXT
Tagged: #py #bmi
ADD COMMENT
Topic
Name
4+3 =