var box4 = (parseInt(prompt('请输入身高'))) var tz = (box4 - 108) * 2; var box5 = (parseInt(prompt('请输入体重'))) console.log(tz - box5) if (tz - box5 <= 10 && tz - box5 >= -10) { alert('合格') } else { alert('不合格') }
var box4 = (parseInt(prompt('请输入身高'))) var tz = (box4 - 108) * 2; var box5 = (parseInt(prompt('请输入体重'))) console.log(tz - box5) if (tz - box5 <= 10 && tz - box5 >= -10) { alert('合格') } else { alert('不合格') }