0

Bmi calculator (please explain with this coding)

weight = int(input()); height = float(input()); x = weight/(height * height); if x<18.5: print("underweight") elif x>=18.5 and x<25: print("Normal") elif x>=25 and x<30: print('overweight') else: print('obesity')

4th Sep 2021, 8:47 AM
Neelam Yashasree
1 Answer
4th Sep 2021, 9:23 AM
Simon Sauter
Simon Sauter - avatar