Advertisement
JkSoftware

Day 2 - BMI Calculator

Nov 4th, 2021
923
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #  Don't change the code below
  2. height = input("enter your height in cm: ")
  3. weight = input("enter your weight in kg: ")
  4. #  Don't change the code above
  5.  
  6. #Write your code below this line
  7. kgs = float(weight)
  8. cms = float(height)
  9.  
  10. bmi = (kgs / cms / cms) * 10000
  11. print(
  12.     int(bmi)
  13. )
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement