C++

BMI Calculator Program in C++4 min read

The Body Mass Index (BMI) is a quick way to assess your body size simply with your weight and height, regardless of your gender. Quickly calculate your BMI and find out which category you fall into.

Body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. It is calculated by dividing an individual’s weight in kilograms by their height in meters squared. The resulting number is used to determine if a person is underweight, normal weight, overweight, or obese.




Here is the BMI classification system used by the World Health Organization (WHO):

  • BMI less than 18.5: Underweight
  • BMI 18.5 to 24.9: Normal weight
  • BMI 25.0 to 29.9: Overweight
  • BMI 30.0 or greater: Obese

It is important to note that BMI is not a diagnostic tool and should not be used as the sole means of determining a person’s health status. It is simply one factor to consider along with other measures such as body composition, waist circumference, and medical history.

In this program we will calculate BMI. Body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women.

C++ Program to Calculate Your Body Mass Index

Write a program that computes the body mass index (bmi) of an individual in C++

Output:

C++ Examples
C++ Examples
C++ Program to Calculate Your Body Mass Index (BMI)
C++ Program to Calculate Your Body Mass Index (BMI)

Alternative: Here is an example BMI calculator program in C++ that uses pounds as the unit of measurement and outputs a message indicating whether the user is normal weight, overweight, or obese:

Output:

This program is similar to the previous example, but it includes additional code to print a message indicating whether the user is normal weight, overweight, or obese based on their BMI. The program uses an if-else statement to check the value of the BMI and output the appropriate message.

I hope this helps!

You May Also Like:

Leave a Reply to How to Calculate BMI(Body Mass Index) Using ASP.NET With HTML Form – Programming Code Examples X