Skip to content

Instantly share code, notes, and snippets.

@amireshoon
Created September 3, 2020 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amireshoon/21b4cda527e921da77af507ece8ffbea to your computer and use it in GitHub Desktop.
Save amireshoon/21b4cda527e921da77af507ece8ffbea to your computer and use it in GitHub Desktop.
BMI
if bmi < 18.5 {
fmt.Println(bmi)
fmt.Println("Underweight")
} else if bmi < 25 {
fmt.Println(bmi)
fmt.Println("Normal")
} else if bmi < 30 {
fmt.Println(bmi)
fmt.Println("Overweight")
} else if 30 < bmi {
fmt.Println(bmi)
fmt.Println("Obese")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment