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
2 odpowiedzi
+ 4
I think it should be weight=int(input()) and height=float(input())
0
A.S.
Yes, u'r right..thanks.