0
Need help with IMC calculator
Hi! Its the last one exercise i have to complete. It give me one error. I dont find the problem. Someone can help me? peso = int(input()) altura = float(input()) IMC = peso / (altura**2) if IMC < 18.5: print("Underweight") elif IMC >= 18.5 and IMC < 24.9: print("Normal") elif IMC >= 24.9 and IMC <= 29.9: print("Overweight") else: print("Obesity")
2 Antworten
+ 1
The thresholds are incorrect. They should be:
18.5
25 (not 24.9)
30 (not 29.9)