Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. print("Peso (KG) :")
  2. p=int(input())
  3. print("Altura (M): ")
  4. alt=float(input())
  5. imc=p/alt**2
  6. bp="Baixo Peso"
  7. norm="Normal"
  8. obesidade="Obesidade"
  9. #podia ser feito com case
  10. print("O adulto tem um IMC de "+ str(imc))
  11. if(imc<18.5):
  12.     print bp
  13. elif(imc>=18.5 and imc<=25):
  14.     print norm
  15. else:
  16.     print obesidade
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement