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