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

Why have travel agents remained an important link in the distribution of tourism service?​
7th-grade math help me, please
You and your friends go to the movies. The cost of admission is $8.50 per person. Click on all the correct answers below according to the Letters A, B, and C. A
A store is selling a pair of jeans for $60.00. If this price included a markup of 25%,what did the store originally pay for the pair of jeans?
Under what circumstances are English words most often used in Brazil?
Select the correct answer. What is the standard form of this complex number? (24-10i ) - (43 + 18i) A. -19+8i B. 67+28i C. -19-28i D. -19+18i
Determine the momentum of a 6 kg object moving at 5 m.s-1 to the right
Which of the following is considered a transition metal? Potassium Sodium Cesium Zinc
can anyone help me with this?​
What is the slope of the line