Coders Packet

BMI Calculator in C++

By Vidhu Shekhar Tripathi

BMI stands for Body Mass Index. Body mass index (BMI) is a measure of fat present in a body. So here, we will compute the BMI of a person using C++.

Hello everyone, today we are going to learn how to compute the BMI of a person using C++. This program is easy to understand in C++.

BMI stands for Body Mass Index. Body mass index (BMI) is a measure of fat present in a body. It determines whether a body is healthy, underweight or overweight. It is very crucial to know BMI as it can detect various possibilities that can occur to your health especially if you are underweight or overweight.

A high BMI can be a sign of too much fat on the body, while a low BMI can be a sign of too little fat on the body. 

BMI can be expressed with a mathematical expression as a ratio of weight defined in kilograms to the square of height defined in meters. The unit of BMI is (kg/m^2).

The program asks 2 inputs which are the height and weight of a person. Then the BMI is calculated with the above-said formula. Based on the value of the BMI calculated, a person is classified as a healthy, underweight or overweight person.

Download project

Reviews Report

Submitted by Vidhu Shekhar Tripathi (Vidhu27)

Download packets of source code on Coders Packet