Skip to content

Commit

Permalink
Create bodymass.py
Browse files Browse the repository at this point in the history
  • Loading branch information
erent8 authored Aug 24, 2023
1 parent bc55e2a commit 43b69ab
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions bodymass.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
kilo = float (input("kilonuzu giriniz(örnek: 84.9): "))
boy = float (input("Boyunuzu m cinsinden giriniz: "))

vki = (kilo / (boy**2))

if vki < 18.5:
print(f"vucut kitle indeksiniz: {vki} zayıfsınız.")
elif vki < 25:
print (f"vucut kitle indeksiniz: {vki} normalsiniz.")
elif vki < 30:
print (f"vucut kitle indeksiniz: {vki} fazla kilolusunuz.")
elif vki < 35:
print (f"vucut kitle indeksiniz: {vki} 1. derece obezsiniz")
elif vki < 40:
print (f"vucut kitle indeksiniz: {vki} 2.derece obezsiniz.")
elif vki >40:
print (f"vucut kitle indeksiniz: {vki} 3.derece obezsiniz.")
else:
print("Yanlış değer girdiniz.")

0 comments on commit 43b69ab

Please sign in to comment.