Write a program that calculates and displays a person's body mass index (bmi).
Answers
Answered by
6
The following codes have been written using Python.
w = float(input("Enter your weight [in Kg]: "))
h = float(input("Enter your height [in Meters]: "))
bmi = w/(h**2)
print()
print(bmi, "is your Body-Mass-Index.")
print()
if bmi < 18.5:
print("Underweight!")
elif bmi < 25:
print("Normal!")
elif bmi < 30:
print("Overweight!")
else:
print("Obese!")
Answered by
0
Answer:
Upper siso is so genius 무ㅏㅛㅐ
Explanatlion:
w = float(input("Enter your weight [in Kg]: "))
h = float(input("Enter your height [in Meters]: "))
bmi = w/(h**2)
print()
print(bmi, "is your Body-Mass-Index.")
print()
if bmi < 18.5:
print("Underweight!")
elif bmi < 25:
print("Normal!")
elif bmi < 30:
print("Overweight!")
else:
print("Obese!")
Similar questions