Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Peso (KG) :")
- p=int(input())
- print("Altura (M): ")
- alt=float(input())
- imc=p/alt**2
- bp="Baixo Peso"
- norm="Normal"
- obesidade="Obesidade"
- #podia ser feito com case
- print("O adulto tem um IMC de "+ str(imc))
- if(imc<18.5):
- print bp
- elif(imc>=18.5 and imc<=25):
- print norm
- else:
- print obesidade
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement