Body Mass Index(BMI) Calculator
Enter values in two input fields for height and weight, a button, and a result paragraph. Click the "Calculate" button, calculates the BMI using the formula weight / (height / 100)^2.
Based on the calculated BMI, the function then determines the BMI category using a series of if...else statements. The result BMI and category are then displayed in the result paragraph.
No comments:
Post a Comment