The Body Mass Index (BMI) is one of the calculations used by doctors to assess an adult's health. The doctor measures the patient's height (in metres) and weight (in kilograms), then calculates the BMI using the formula:
Write a program which takes the patient's weight and height as input, calculates the BMI, and displays the corresponding message from the table below.
|Between and (inclusive)||Normal weight|
Sample Input 1
Output for Sample Input 1
Explanation for Output in Sample Input 1
The BMI is which is approximately . According to the table, this is a "Normal weight".
Sample Input 2
Output for Sample Input 2
Explanation for Output in Sample Input 2
The BMI is , which is approximately . According to the table, this is "Overweight".