Body Mass Index Calculator is used to specify the user whether they are normal or overweight or underweight and it alerts the user whether the user is in correct weight or not.
The Body Mass Index calculator is worked based on a formula, It will vary from the units. If we take the height in feet, the meter then we use (weight /(height * height), and if we take height in centimeters we use (weight / (height/100)**2). Here I take the height in centimeters. Here I define the body mass index function. Here I've taken two variables they are height and weight. This program will take height and weight as two inputs then the function is called. The Body Mass Index will be calculated and displayed BMI and whether we are underweight or overweight or normal state on the screen. This is how it works. It will be useful to the users to know whether they are healthy with normal weight or unhealthy with underweight or obese with overweight.
Submitted by KILAPARTHI CHANDRA MOUNIKA (chandramounika27)
Download packets of source code on Coders Packet
Comments