Skip to content

Commit

Permalink
fixed the bmi calc
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxiAmZocken committed Nov 17, 2024
1 parent b8bda9b commit ef80cb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BMI.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ function BMI() {
bmi = Math.round(100*bmi)/100;
document.getElementById("bmi").innerHTML = text1 + "<br>" + bmi;
if (bmi<19) {
result = "You are overweight"
result = "You are underweight"
}
else if (bmi>26) {
result = "You are underweight"
result = "You are overweight"
}
else {
result = "Your weight is normal"
Expand Down

0 comments on commit ef80cb9

Please sign in to comment.