BMI Calculation on Python Code
BMI Calculation
Hi Programmer's
Here We have make program for body mass index(BMI).
It is just simple program...Not big one
Here We have make program for body mass index(BMI).
It is just simple program...Not big one
Okay Let's see..
CODE:
a = int(input('Enter your weight in (kg): '))
b = float(input('Enter your height in (m): '))
bmi = a / (b*b)
print(f'Your BMI: {bmi}')
if bmi < 18.5:
print('You are under weight')
elif 18.5 < bmi < 24.9:
print('You are normal weight')
elif 25 < bmi < 29.9:
print('You are overweight')
else:
print('Obesity')
b = float(input('Enter your height in (m): '))
bmi = a / (b*b)
print(f'Your BMI: {bmi}')
if bmi < 18.5:
print('You are under weight')
elif 18.5 < bmi < 24.9:
print('You are normal weight')
elif 25 < bmi < 29.9:
print('You are overweight')
else:
print('Obesity')
-----
By
PyKAR
PyKAR
Its really awesome post for interesting candidates who are going to join you and it is a best reputed center otherwise if any one want to increase his\her skill in python or start up in a python contact us on 9311002620 and visit our further websites https://www.htsindia.com/Courses/python/python-training-institute-in-south-delhi
ReplyDeleteI appreciate you. Especially your content,a lot of knowleged.You also read bmi calculator
ReplyDelete