From 739c1a2c2fb827a37c0886268f38fbd92454d842 Mon Sep 17 00:00:00 2001 From: rohitgarud21 <115347445+rohitgarud21@users.noreply.github.com> Date: Mon, 10 Oct 2022 09:53:50 +0530 Subject: [PATCH 1/3] Create readme.md --- scripts/BMI/readme.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 scripts/BMI/readme.md diff --git a/scripts/BMI/readme.md b/scripts/BMI/readme.md new file mode 100644 index 0000000..3e4fced --- /dev/null +++ b/scripts/BMI/readme.md @@ -0,0 +1,4 @@ +###BMI calculator with PYTHON + +#Steps : +*Run - python bmi.py From 0b7417e458bafedb0d7eeffd5d2613f5c43790b9 Mon Sep 17 00:00:00 2001 From: rohitgarud21 <115347445+rohitgarud21@users.noreply.github.com> Date: Mon, 10 Oct 2022 09:54:14 +0530 Subject: [PATCH 2/3] Create bmi.py --- scripts/BMI/bmi.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/BMI/bmi.py diff --git a/scripts/BMI/bmi.py b/scripts/BMI/bmi.py new file mode 100644 index 0000000..85f2f1c --- /dev/null +++ b/scripts/BMI/bmi.py @@ -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") From 46ca368a254515c6ef02146ddd8e99ea3c17b8f8 Mon Sep 17 00:00:00 2001 From: rohitgarud21 <115347445+rohitgarud21@users.noreply.github.com> Date: Mon, 10 Oct 2022 09:54:47 +0530 Subject: [PATCH 3/3] Update readme.md --- scripts/BMI/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/BMI/readme.md b/scripts/BMI/readme.md index 3e4fced..ef05bd4 100644 --- a/scripts/BMI/readme.md +++ b/scripts/BMI/readme.md @@ -1,4 +1,4 @@ -###BMI calculator with PYTHON +BMI calculator with PYTHON #Steps : -*Run - python bmi.py +Run - python bmi.py