jbrad1322 jbrad1322
  • 04-07-2019
  • Computers and Technology
contestada

What is the value of x after the following statements execute? int x, y, z; y 12; z 3; X= (y*(z+y-10); A. 36 B. 144 C.60 D. None of these

Respuesta :

PhantomWisdom PhantomWisdom
  • 12-07-2019

Answer:

60

Explanation:

According to the operator precedence, the bracket comes in the top. So, the program solve expression in the bracket first.

In the code, the value of Y is 12  and z is 3

substitute the value in the formula.

X = (12*(3 + 12 - 10)).

So, the program calculate the value (3 + 12 - 10) first which gives 5.

After that program evaluate (12 * 5) which gives 60.

Therefore, the answer is 60.

Answer Link

Otras preguntas

What is the answer to 13/56 + 5/7=?
A parallelogram with all angles measuring 90 degrees is what type of quadrilateral? (I wanna say rectangle..) A. rhombus B. kite C. trapezoid D. rectangle
Factor completely. 3x3 – 27x A. 3x(x – 3)(x + 3) B. 3(x + 3)(x – 3) C. 3x(x – 9) D. 3x(x – 3)(x – 3)
what is fractions equivalent by 8/3
Which corrects the shift in tense in this sentence? When they had been choosing to go to the dude ranch, they did not know how far a drive it was from the airpo
a pice of pipe is 30 3/4 inches long, if five pieces, each 4 1/3 inches long, are cut from the pipe how many inches of pipe from the pipe remain
What Is 3,552,308,725 In Word Form
Which is a correctly written sentence, not a run-on? A. Our car wouldn't start, so Dad called a tow truck to take it to the mechanic. B. Our backyard was all so
which of the numbers 19 21 23 and 25 has the most factors
If a = –3.7, what is the value of –a? A. 3.7 B. 3 C. –3.7 D. –3