Está en la página 1de 1

#indice de masa corporal pida talla y peso

talla = float(input ("Ingrese su estatura en metros: "))


#
peso = float(input("Ingrese su peso en kilogramos: "))
#
IMC = peso/(talla**2)
print("Su indice de masa corporal es : ", IMC)
# como mostrar comparativamente y arrojar en cual categoria esta
#Condicionales If ...Else <18.5 Peso insuficiente, 18.5 al 24.9 Peso Normal, 25-
26.9 sobrepeso grado 1
if IMC<18.5:
print ("Su peso es insuficiente")
if IMC >= 18.5 and IMC < 25:
print("Su peso es normal")
if IMC >=25 and IMC <27:
print ("Usted tiene sobre peso grado I")
if IMC >=27 and IMC <30:
print ("Usted tiene sobre peso grado II")
if IMC >=30 and IMC <35:
print ("Usted tiene obesidad de tipo I")
if IMC >=35 and IMC <40:
print ("Usted tiene obesidad de tipo II")
if IMC >=40 and IMC <50:
print ("Usted tiene obesidad de tipo III (morbida)")
if IMC>=50:
print ("Obesidad tipo IV (extrema)")
#End

También podría gustarte