Skip to content

Instantly share code, notes, and snippets.

@cohalz
Created January 19, 2014 12:48
Show Gist options
  • Save cohalz/8504434 to your computer and use it in GitHub Desktop.
Save cohalz/8504434 to your computer and use it in GitHub Desktop.
let bmi_check (name, height, weight) =
let bmi = weight /. (height *. height) in
if bmi < 18.5 then name ^ "さんはやせています"
else if bmi < 25.0 then name ^ "さんは標準です"
else if bmi < 30.0 then name ^ "さんは肥満です"
else name ^ "さんは肥満です"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment