Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peso = float(input ("Vamos a calcular su IMC, ingrese su peso" ))
- altura = float(input ("Ingrese su altura" ))
- altura = altura * altura
- IMC = peso / altura
- if (IMC < 15 ):
- print("Delgadez muy severa")
- elif (IMC > 15 && IMC < 15.9):
- print("Delgadez severa")
- elif (IMC> 15.9 && IMC < 18.4 ):
- print("Delgadez")
- elif (IMC > 18.4 && IMC < 24.9):
- print("Peso saludable")
- elif (IMC > 24.9 && IMC < 29.9):
- print("Delgadez severa")
- elif (IMC> 29.9 && IMC < 34.9 ):
- print("Delgadez")
- elif (IMC > 34.9 && IMC < 39.9):
- print("Peso saludable")
- elif (IMC > 34.9):
- print("Peso saludable")
- print(f"Su IMC es: {IMC}" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement