본문 바로가기

python

[python] BMI 계산기

height = input("enter your height in m : ")

weight = input("enter your weight in kg : " )

 

BMI = int(weight ) / float(height) ** 2 

 

print(BMI)

 

BMI_as_int = int(BMI)

 

 

'python' 카테고리의 다른 글

[python]인생에서 남은 나이  (0) 2022.05.22
오늘부터 차근차근  (0) 2022.05.18