# include
Void main ()
{
Int a=1, b=4, c=2;
Float=10.5 x, y=4.0, z;
Z=+ SQRT (a + b)/c (y) (double) * 1.2 + x/c;
Printf (" % f \ n ", z);
}
Why the answer is 13.700000
I start from a * 1.2 in
CodePudding user response:
# include# include
Void main ()
{
Int a=1, b=4, c=2;
Float=10.5 x, y=4.0, z;
Z=+ SQRT (a + b)/c (y) (double) * 1.2 + x/c;
Printf (" % d \ n ", (a + b)/c); -- -- -- -- -- -- -- -- -- -- -- -- --
2Printf (" % f \ n ", SQRT (y) (double) * 1.2/c); -- -- -- -- --
1.200000Printf (" % f \ n ", x); -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10.500000
Printf (" % f \ n ", z); -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
13.700000}
CodePudding user response:
I see I make a mistake algorithms