Advertisement
JkSoftware

Day 2 - BMI Calculator

Nov 4th, 2021
1,009
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement