0

Why the output come out like this?why these "00.0" coming?

Here my code: #your code goes here weight = input(int()) height = input(float()) bmi = int(weight)/(float(height)**2) if bmi < 18.5: print ('Underweight') if bmi >= 18.5 and bmi < 25: print ('Normal') if bmi >= 25 and bmi < 30: print ('Overweight') if bmi >= 30: print ('Obesity') #test case 1 Output: 00.0Underweight #test case 2 Output: 00.0Obesity

27th Jun 2021, 6:27 PM
encikbaru
encikbaru - avatar
2 odpowiedzi
+ 4
I think it should be weight=int(input()) and height=float(input())
27th Jun 2021, 6:38 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
A.S. Yes, u'r right..thanks.
27th Jun 2021, 6:45 PM
encikbaru
encikbaru - avatar