{"id":16521,"date":"2021-09-30T11:30:33","date_gmt":"2021-09-30T06:00:33","guid":{"rendered":"https:\/\/python-programs.com\/?p=16521"},"modified":"2021-11-22T18:35:28","modified_gmt":"2021-11-22T13:05:28","slug":"python-program-to-calculate-bmi","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-calculate-bmi\/","title":{"rendered":"Python Program to Calculate BMI"},"content":{"rendered":"

Our website provided core java programs examples with output<\/a> aid beginners and expert coders to test their knowledge gap and learn accordingly.<\/p>\n

Body Mass Index (BMI) :<\/strong><\/p>\n

The “Quetelet Index ” is another name for the BMI. It is a value calculated using a person’s weight (in kg) and height (in meters), whether male or female. The body mass index (BMI) is calculated by multiplying the body mass by the square of the body height. BMI is measured in kilograms per square meter.<\/p>\n

The BMI is used to determine if a person is underweight, normal weight, overweight, or obese. A table with data from the four categories listed above is provided below.<\/p>\n\n\n\n\n\n\n\n\n
BMI<\/th>\nWeight Status<\/th>\n<\/tr>\n<\/thead>\n
Below 18.5<\/td>\nUnderweight<\/td>\n<\/tr>\n
18.5 \u2013 24.9<\/td>\nNormal or Healthy Weight<\/td>\n<\/tr>\n
25.0 \u2013 29.9<\/td>\nOverweight<\/td>\n<\/tr>\n
30.0 and Above<\/td>\nObese<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

Formula to calculate BMI :<\/strong><\/p>\n

BMI = [mass\/(height*height)]<\/strong><\/p>\n

where mass is the body’s mass in kilograms and<\/p>\n

height is the body’s height in meters<\/p>\n

Given Height, Weight and the task is to calculate BMI for given input values.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Height = 2.5\r\nGiven Weight = 50<\/pre>\n

Output:<\/strong><\/p>\n

The BMI for the above given values =  8.0\r\nHealth status of a person for the above obtained BMI = The person is Underweight<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Height =  1.5\r\nGiven Weight =  70<\/pre>\n

Output:<\/strong><\/p>\n

The BMI for the above given values =  31.11111111111111\r\nHealth status of a person for the above obtained BMI = The person is Suffering from Obesity<\/pre>\n

Program to Calculate BMI<\/h2>\n

Below are the ways to Calculate BMI for Given values of height, weight.<\/p>\n