Coders Packet

BMI calculator in C++

By Sakshi Maurya

The objective of this project is to find whether a person is underweight, healthy, or overweight by calculating the BMI index using C++.

WHAT IS BODY MASS INDEX (BMI)?

Body mass index is a useful tool to know whether a person is an obese or underweight or normal weight based on their weight and height.

Ranges of BMI:

1. Underweight -> if less than 18.5

2. Normal weight / healthy -> between 18.5 and 25.0 (included)

3. Overweight / Obese -> if greater than 25.0

How to calculate BMI:

Weight in kilogram divided by square of height in meters.

IN THE PROGRAM:

In this program, we can calculate the BMI and also check the rules of BMI (ranges of BMI). By taking the input for the weight and height from the user in kilograms and meters respectively. Then showing the result according to it.

Download Complete Code

Comments

No comments yet