Java Script/JS basic
JS] 함수연습 / BMI 계산
CodeMia
2021. 8. 8. 06:40

weight, height 값 입력 받아 BMI 값 구하기

BMI = weight / height * height

숫자
지수(power): height*height 두 번 곱해도 되고,
Math.pow(밑숫자 base, 지수 exponent)로 써도 된다.
반올림(round): Math.round() 를 쓴다.