Computer Science, asked by priyankadimri87, 4 months ago

. 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 ssrathour45
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