- 3

Help me with BMI please

Help me please

26th May 2022, 4:16 PM
konstantin ataev
12 Respostas
+ 3
"In the face of ambiguity, refuse the temptation to guess." I think I didn't ask for too much. ;)
26th May 2022, 6:42 PM
Lisa
Lisa - avatar
+ 2
What is IMT? If you need help, please link your code and give a complete problem description, so we can help you. Tag the relevant programming language.
26th May 2022, 4:26 PM
Lisa
Lisa - avatar
+ 2
Re-read the lessons, read the task description carefully. Then try. * get input * convert input to numeric data type. * calculate bmi according to formula * use if-elif-else statement and output according to the task description. Then show us what you tried.
26th May 2022, 6:54 PM
Lisa
Lisa - avatar
+ 1
y = int(input()) y = 'kg' z = float(input()) z = 'm' x = y / z**2 if x < 18.5: print("Underweight") elif x >= 18.5 and x < 25: print("Normal") elif x >= 25 and x < 30: print("Overweight") elif x == 30 and x > 30: print("Obesity")
27th May 2022, 4:25 AM
konstantin ataev
0
Lisa IMT = Intima-Media Thickness, also known as BMI = Body Mass Index
26th May 2022, 6:38 PM
Brian
Brian - avatar
0
Ok i wrote x = y / z **2 if x<=18.5: print ("Underweight") elif x>=18.5 and x<25: print ("Normal") elif x>=25 and x<30: print("Overweight") elif x>30: print("Obesity")
26th May 2022, 7:03 PM
konstantin ataev
0
Read the task description again and my reply: * get input() as described in the task * consider the case that x == 30 * x will not be <= 18.5 and >= 18.5
26th May 2022, 7:12 PM
Lisa
Lisa - avatar
0
If you have solved this task, you can write me the solution?
27th May 2022, 4:30 AM
konstantin ataev
- 1
I need help in 26 task with BMI
26th May 2022, 6:50 PM
konstantin ataev
- 1
I couldn't write this code
26th May 2022, 6:51 PM
konstantin ataev
- 1
programming language is Python
26th May 2022, 6:51 PM
konstantin ataev
- 1
By the way if you don't understand what this task is, then this is BMI calculator
26th May 2022, 7:09 PM
konstantin ataev