Posts

Showing posts from October, 2023

BMI Calculator using python

Image
 Hello dudes! Long time no see.. Hope you are all doing great😃 After absconding for more than a month we came today to meet you all with a simple python program to calculate your own BMI (Body Mass Index) FYI what is mean by Body Mass Index? Body mass index (BMI) is a simple index of weight-for-height that is commonly used to classify overweight and obesity in adults . It is defined as a person's weight in kilograms divided by the square of his height in meters (kg/m 2 ) . [ If (You think == He might have stolen this definition of BMI from Wikipedia):         You are wrong ]  Hehe😁 actually i have stolen this definition from World Heath Organization So the program is : Explanation : - Height (in cm) and Weight (in kg ) asked from user as inputs in runtime. Here both the variables are declared as float datatype ,which allows decimal values in input. - Unit of height is converted from cm to m - BMI formula with respect to height and weight is defined -As per user input the calculat