- 3
Help me with BMI please
Help me please
12 Respostas
+ 3
"In the face of ambiguity, refuse the temptation to guess."
I think I didn't ask for too much. ;)
+ 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.
+ 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.
+ 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")
0
Lisa IMT = Intima-Media Thickness, also known as BMI = Body Mass Index
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")
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
0
If you have solved this task, you can write me the solution?
- 1
I need help in 26 task with BMI
- 1
I couldn't write this code
- 1
programming language is Python
- 1
By the way if you don't understand what this task is, then this is BMI calculator