- 2

BMI calculator

It's saying expected indented block ?

3rd Apr 2021, 6:07 AM
Ravi venkateswarlu
Ravi venkateswarlu - avatar
6 Respostas
+ 1
Why you write your code in the tags?
3rd Apr 2021, 7:39 AM
Ipang
+ 1
Ravi venkateswarlu Please show your attempts.
4th Apr 2021, 9:06 PM
❤️😍Prerana😍❤️
❤️😍Prerana😍❤️ - avatar
0
Show your attempt
3rd Apr 2021, 6:09 AM
SAN
SAN - avatar
0
Any another simple way ?
3rd Apr 2021, 9:41 AM
Ravi venkateswarlu
Ravi venkateswarlu - avatar
0
Thanks mam finally I got answer this way weight = float(input()) height = float(input()) BMI = weight / (height**2) if BMI < 18.5: print("Underweight") elif BMI >= 18.5 and BMI<25: print("Normal") elif BMI >= 25 and BMI < 30: print("Overweight") elif BMI > 30 : print("Obesity")
5th Apr 2021, 4:45 AM
Ravi venkateswarlu
Ravi venkateswarlu - avatar
0
PLEASE SOMEONE TELL ME WHAT'S WRONG HERE!? 🙏 h = float(input("Enter Your Height: ")) w = float(input("Enter Your Weight: ")) bmi = w/(h**2) if (bmi < 18.5): print('Underweight') elif (bmi>=18.5 and bmi<25): print('Normal') elif (bmi>=25 and bmi<30): print('Overweight') elif (bmi > 30): print('Obesity') else: print('Wrong Input')
7th May 2022, 11:08 AM
Avijit Datta