Untitled
unknown
python
4 years ago
296 B
7
Indexable
height = input("enter your height in m: ")
weight = input("enter your weight in kg: ")
#Tuđi kod 👇
weight= float(weight)
height= float(height)
BMI= weight/(height**2)
BMI= int(BMI)
print (BMI)
#Moj kod 👇
weight = int(weight)
height = int(height**2)
bmi = weight / height
print(int(bmi))Editor is loading...