Skip to content

Commit

Permalink
Create body-mass-index.py
Browse files Browse the repository at this point in the history
Body Mass Index calculator in Python
  • Loading branch information
JaswantTeja authored Oct 9, 2022
1 parent 07734f9 commit 064ed9e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions BMI/body-mass-index.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env python3
print("Body Mass Inder Calculator")
height = float(input("enter height (m):"))
weight = int(input("enter weight (kg):"))

index = weight/(height*height)

if index <=18:
print("\n underweight BMİ:{}".format(index))
elif index > 18 and index <=25 :
print("\n overweight BMİ:{}".format(index))
elif index > 25 and index <=30:
print("\n obese BMİ:{}".format(index))
elif index > 30:
print("\n severely obese BMİ:{}".format(index))

0 comments on commit 064ed9e

Please sign in to comment.