angelstoev

BMI Calc

May 25th, 2022 (edited)
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. weight = int(input());
  2. height = float(input());
  3. x = weight/float(height*height);
  4. if x < 18.5:
  5.     print('Underweight')
  6. if x>=18.5 and x<25:
  7.     print("Normal")
  8. if x >= 25 and x < 30:
  9.    print('Overweight')
  10. if x >= 30:
  11.    print('Obesity')
Add Comment
Please, Sign In to add comment