Merge pull request #299 from rohitgarud21/master

Added BMI Calculator
This commit is contained in:
Bartick Maiti 2022-10-10 11:30:10 +05:30 committed by GitHub
commit fe7a3e2191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

16
scripts/BMI/bmi.py Normal file
View 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")

4
scripts/BMI/readme.md Normal file
View File

@ -0,0 +1,4 @@
BMI calculator with PYTHON
#Steps :
Run - python bmi.py

After

Width:  |  Height:  |  Size: 57 B