← Back to List

6825번: Body Mass Index ↗

Solutions

Python 3
167 B | 167 chars
w = float(input())
h = float(input())

k = h * h

if w < 18.5 * k:
    print("Underweight")
elif w <= 25 * k:
    print("Normal weight")
else:
    print("Overweight")