repl.it
@SushaanPatel/

BMI Calculator

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
print ("Welcome to the BMI Calculator")

x=float(input("\nYour Weight in Kg\n"))
y=float(input("\nYour Height in Cm\n")) 
a= y / 100
i=x/(a*a)
print("\n")
print (i)
print ("\nIf your BMI is less than 18.5, it falls within the underweight range. If your BMI is 18.5 to 24.9, it falls within the normal or Healthy Weight range. If your BMI is \n25.0 to 29.9, it falls within the overweight range. \nIf your BMI is 30.0 or higher, it falls within the obeserange.\n")
?