Skip to content

Instantly share code, notes, and snippets.

@paley777
Created June 18, 2022 08:29
Show Gist options
  • Save paley777/cb47a1d52a2cb4361d201338934b6161 to your computer and use it in GitHub Desktop.
Save paley777/cb47a1d52a2cb4361d201338934b6161 to your computer and use it in GitHub Desktop.
calculate ideal body weight using broca's formula
tinggi = int(input("Masukan tinggi badan dalam CM: "))
bbnorm = tinggi-100
bbideal = bbnorm-10/100
print("\nBerat Normal: %d Kg" %bbnorm)
print("\nBerat Ideal: %d Kg" %bbideal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment