Home > Back-end >  C language beginner, bosses help change an error
C language beginner, bosses help change an error

Time:10-26

#include
Int main ()
{
Double w, h, BMI;
BMI=w/h) (h *;
Printf (" please enter the weight (kg) \ n ");
If the scanf (" % ", & amp; W);
Printf (" please enter the height (m) \ n ");
If the scanf (" % ", & amp; H);
Printf (" BMI=% f \ n ", BMI);
return 0;
}

CodePudding user response:

Lf the scanf (" % ") love gull, not I

CodePudding user response:

Love gull, ivor, is not love, ivor

CodePudding user response:

#include
Int main ()
{
Double w, h, BMI;
BMI=w/h) (h *;//w and h I don't know is a few, began to be a ghost ah
Printf (" please enter the weight (kg) \ n ");
If the scanf (" % ", & amp; W);
Printf (" please enter the height (m) \ n ");
If the scanf (" % ", & amp; H);
Printf (" BMI=% f \ n ", BMI);
return 0;
}

CodePudding user response:

The
reference 1 floor? Victor.?? Response:
the scanf (" % lf ") love gull, not I

this is 10.0 look in the eyes to see, and the difference between l and I

CodePudding user response:

The
reference 1 floor? Victor.?? Response:
the scanf (" % lf ") love gull, not I

Thank you thank you, change it

CodePudding user response:

The
reference 1 floor? Victor.?? Response:
the scanf (" % lf ") love gull, not I

Why the output has been the result of the 0.000000

CodePudding user response:

Fun
reference 3 floor response:
# include
Int main ()
{
Double w, h, BMI;
BMI=w/h) (h *;//w and h I don't know is a few, began to be a ghost ah
Printf (" please enter the weight (kg) \ n ");
If the scanf (" % ", & amp; W);
Printf (" please enter the height (m) \ n ");
If the scanf (" % ", & amp; H);
Printf (" BMI=% f \ n ", BMI);
return 0;
}

Know, thank you very much

CodePudding user response:

Fun
reference 4 floor response:
Quote: refer to 1st floor? Victor.?? Response:

Lf the scanf (" % ") love gull, not I

this is 10.0 look in the eyes to see, and the difference between l and I ah

Ai the higher

CodePudding user response:

 # include 
Int main ()
{
Double w, h, BMI;
//BMI=w/h) (h *;
Printf (" please enter the weight (kg) \ n ");
Lf the scanf (" % ", & amp; W);
Printf (" please enter the height (m) \ n ");
Lf the scanf (" % ", & amp; H);
BMI=w/h) (h *;
//printf (" BMI=% f \ n ", BMI);
Printf (" BMI=% lf \ n ", BMI);
return 0;
}


For your reference ~
  • Related