Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Don't change the code below
- height = input("enter your height in cm: ")
- weight = input("enter your weight in kg: ")
- # Don't change the code above
- #Write your code below this line
- kgs = float(weight)
- cms = float(height)
- bmi = (kgs / cms / cms) * 10000
- bmi = round(bmi, 1)
- if bmi <= 18.5:
- print(f"Your BMI is: {bmi} You are underweight")
- elif bmi <= 25:
- print(f"Your BMI is: {bmi} You are at a normal weight")
- elif bmi <= 30:
- print(f"Your BMI is: {bmi} You are overweight")
- elif bmi <= 35:
- print(f"Your BMI is: {bmi} You are obese")
- else:
- print(f"Your BMI is: {bmi} You are clinically obese")
Advertisement
Advertisement
Advertisement
RAW Paste Data
Copied
Advertisement