mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-27 14:01:12 +00:00
Create bmi.py
This commit is contained in:
parent
739c1a2c2f
commit
0b7417e458
16
scripts/BMI/bmi.py
Normal file
16
scripts/BMI/bmi.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
Height=float(input("Enter your height in centimeters: "))
|
||||
Weight=float(input("Enter your Weight in Kg: "))
|
||||
Height = Height/100
|
||||
BMI=Weight/(Height*Height)
|
||||
print("your Body Mass Index is: ",BMI)
|
||||
if(BMI>0):
|
||||
if(BMI<=16):
|
||||
print("you are severely underweight")
|
||||
elif(BMI<=18.5):
|
||||
print("you are underweight")
|
||||
elif(BMI<=25):
|
||||
print("you are Healthy")
|
||||
elif(BMI<=30):
|
||||
print("you are overweight")
|
||||
else: print("you are severely overweight")
|
||||
else:("enter valid details")
|
Loading…
Reference in New Issue
Block a user