Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Este aplicativo calcula seu imc
- #Criado por Elizeu Barbosa Abreu
- print("\n CALCULADORA IMC \n")
- peso = float(input("\nSeu peso em Kg \n(Ex.: 57.800): "))
- altura = float(input("\nSua altura em Metros \n(Ex.: 1.92): "))
- imc = round(peso/(altura*altura), 2)
- print("\n-----------RESULTADO--------------")
- if imc < 18.5:
- print("I.M.C: {} \nAbaixo do peso".format(imc))
- if imc >= 18.5 and imc <= 24.9:
- print("I.M.C: {} \nPeso Ideal".format(imc))
- if imc >= 25 and imc <= 29.9:
- print("I.M.C: {} \nSobrepeso".format(imc))
- if imc >= 30 and imc <= 34.9:
- print("I.M.C: {} \nAlerta: OBESIDADE GRAU 1".format(imc))
- if imc >= 35 and imc <= 39.9:
- print("I.M.C: {} \nAlerta: OBESIDADE GRAU 2".format(imc))
- if imc > 40:
- print("I.M.C: {} \nAlerta: OBESIDADE GRAU 3 OU MORBIDA\nProcure ajuda medica".format(imc))
- print("----------------------------------")
Add Comment
Please, Sign In to add comment