BMI= w/(h/100)2
double BMI = weight/(height*height)// Works when weight=kilograms, height= meters
I need the output to be in kilograms and centimeters.
Any help, much appreciated.
BMI= w/(h/100)2
double BMI = weight/(height*height)// Works when weight=kilograms, height= meters
I need the output to be in kilograms and centimeters.
Any help, much appreciated.
Then convert the meters into centimeters by dividing height by 100. Then do the same calculation that you already posted.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.