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

Need help solving this problem 12-3b <9
multipule choice Which numbers belong to the range of the relation {(1, 0), (4, –3), (–3, 2), (5, 0)}? Choose all answers that are correct. A. 5 B. 2 C. 0 D
15% of what number is 12
why is the understanding of classification an important life skill
Which of the following words is derived from Greek? A. abhorrence B. abscond C. catalyst D. herbicide
use compatible numbers to estimate the quotient. 394.6÷9
which of the following choices best describes why the founding fathers decided that the united states should be a republic ? a)They wanted people to have power
Who was the president when the Bill of Rights was passed?
when minerals in rocks combine with__________in the air chemical weathering takes place. FILL IN THE BLANK!!!!!!!
what is 8.4 divided by 7