. WAP in Python to calculate BMI(Body Mass Index)
(I) When values are given.
(ii) When values are entered by the user.
Answers
Answered by
0
Answer:
a=float(input('Enter the height in m : ')
b=float(input('Enter the weight in kg: ')
BMI=b/(a*a)
print('The BMI is', BMI)
Explanation:
For first part you can simply give value in a and b as
a=12.4
b=34
Similar questions
English,
2 months ago
Math,
2 months ago
Hindi,
2 months ago
Computer Science,
4 months ago
Biology,
10 months ago