Advertisement
Aleksandrovno

Untitled

May 11th, 2020
2,642
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. peso = float(input ("Vamos a calcular su IMC, ingrese su peso" ))
  2. altura = float(input ("Ingrese su altura" ))
  3. altura = altura * altura
  4. IMC = peso / altura
  5. if (IMC < 15 ):
  6.     print("Delgadez muy severa")
  7. elif (IMC > 15  && IMC < 15.9):
  8.     print("Delgadez severa")
  9. elif (IMC> 15.9  && IMC < 18.4 ):
  10.     print("Delgadez")
  11. elif (IMC > 18.4  && IMC < 24.9):
  12.     print("Peso saludable")
  13. elif (IMC > 24.9 && IMC < 29.9):
  14.         print("Delgadez severa")
  15. elif (IMC> 29.9  && IMC < 34.9 ):
  16.     print("Delgadez")
  17. elif (IMC > 34.9  && IMC < 39.9):
  18.     print("Peso saludable")
  19. elif (IMC > 34.9):
  20.     print("Peso saludable")
  21. print(f"Su IMC es: {IMC}" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement