Discuss / JavaScript / 作业

作业

Topic source

wf68989

#1 Created at ... [Delete] [Delete and Lock User]

var bmi = height/(weight*weight); if(bmi<18.5) { alert("过轻"); } else if(bmi>=18.5&&bmi<25) { alert("正常"); } else if(bmi>=25&&bmi<28) { alert("过重"); } else if(bmi>=28&&bmi<32) { alert("肥胖"); } else if(bmi>=32) { alert("严重肥胖"); }


  • 1

Reply