From 3bb816fb61365c0db91b67e83f8b8540f6659236 Mon Sep 17 00:00:00 2001 From: u Date: Wed, 19 Jul 2017 15:45:08 +0000 Subject: [PATCH] hw2 --- 2017-handsomeboys-youming.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 2017-handsomeboys-youming.js diff --git a/2017-handsomeboys-youming.js b/2017-handsomeboys-youming.js new file mode 100644 index 0000000..5e3b28b --- /dev/null +++ b/2017-handsomeboys-youming.js @@ -0,0 +1,12 @@ +/* 陳祐明 hw2 */ +console.log(getBMI(1.7,50)); + +function getMessage(height,weight) +{ + if(18<(weight/(height*height))&&(weight/(height*height))<23) + console.log("Health"); + else + console.log("Not health"); +} +console.log("getMessage"); +getMessage(1.7,50); \ No newline at end of file