PREREQUISITES
To Practice this Program, you should have a basic knowledge of the following Topics:
WHAT TO DO ?
Given,
Formula for BMI : weight/(height**2)
Ask the user for necessary information and return BMI Score.
HOW TO DO ?
Following are the steps to do :
</p>
<div class="wp-block-codemirror-blocks-code-block code-block">
<pre>height = float(input("What is your height in meters ? "))
weight = float(input("What is your weight ? "))</pre>
</div>
<div class="wp-block-codemirror-blocks-code-block code-block">
<pre>bmi = weight/(height**2)
print("Your Body Mass Index(BMI) is " + str(bmi))</pre>
</div>
Things We Covered
- Accepting User Data (Input Function)
- Calculating Formula (Integer/Float Calculation)
- Print/Output the Data (Print Function)
Posted by Akshay Gupta
