Created
January 19, 2014 12:48
-
-
Save cohalz/8504434 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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