PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Created by Stephen Amimi
#This code is prepared for a BMI calculator
weight = float(input())
height = float (input ())
BMI = weight /height**2 #the **2 represents height raise to the power of two.
if BMI < 18.5:
print ("Underweight")
elif BMI >= 18.5 and BMI < 25 :
print ("Normal")
elif BMI >= 25 and BMI < 30 :
print ("Overweight")
elif BMI >= 30 :
print ("Obesity")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Uruchom