char F;
if (Gender == F)
{
IBW=HEIGHT-60;
IBW=IBW*2.3+45.5;
IBW=IBW*2.2046;
}
10
10 else
10 {
Type: Posts; User: drewmail
char F;
if (Gender == F)
{
IBW=HEIGHT-60;
IBW=IBW*2.3+45.5;
IBW=IBW*2.2046;
}
10
10 else
10 {
12 #include <stdio.h> 13 #include <math.h>
14
15 int main()
16 {
20
21 double BMI, HEIGHT, WEIGHT, TargetBMI, IBW;
22 char Gender;
23
27 printf("Enter the...
The correct ideal body weight should be 95.24 on a female not 105.16. The male, on the other hand, is correct. Thanks for your attempt anyway
Enter the height in inches.
72
Enter the weight in pounds.
165
The BMI is 22.38
BMI classification: Normal
Enter the target BMI
25
That did not seem to change anything on the examples I tried.
In the IBW calculation, the male is off by -10lbs on any given example and if I flip the male and female aspects the female is off by +10lbs
It must be something small I just need a second look at...