BMI
how to create a code for body mass index in c#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Feb 12, 2015, 5:56 AM EST
double bmi = weight /height/height;
where weight and height are double values expressed in kilograms and meters, respectively.
Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted Feb 12, 2015, 6:25 PM EST
BMI Formula (Metric Units)
If you are using the metric system, the formula to calculate BMI is a little different. In this BMI formula, you use kilograms and meters for a child's weight and height:So using the metric system, 'the formula for BMI is weight in kilograms divided by height in meters squared.'and if
BMI Categories:
Underweight = <18.5
Normal weight = 18.5–24.9
Overweight = 25–29.9
Obesity = BMI of 30 or greater