0

How do I convert feet and inches to m then squaring for the formula for my bmi program?

System.out.println("Your BMI is " + ((weight * .45) / ((((feet * 12) + inches) * .02254) * 2))); I keep getting varied answers versus what I should my issue is the equation I think. BMI = kg / (meters *2)

15th Jan 2017, 7:33 PM
matt
matt - avatar
2 Antworten
0
metric kg/m², imperial 703 x (lb/in²) 1foot=12inches
15th Jan 2017, 9:42 PM
Rastko Savic
Rastko Savic - avatar
0
how would I write that in my code though so it reads and calculates properly. the code I gave you, put the number off several numbers away from what is it
15th Jan 2017, 11:17 PM
matt
matt - avatar