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)
2 Réponses
0
metric kg/m², imperial 703 x (lb/in²) 1foot=12inches
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