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

A research study asked 2892 homeowners how many bedrooms were in their homes. The results are shown in the table below. What is the probability that a homeowner
What social change is most important to you at this time? Can you use any of this information to affect the social change that you want to see? How will you a
how to write a formal letter on any topic​
La muralla El poeta la quienes llama para construie la muralla?
Find the surface area of the solid formed by the net. Round your answer to the nearest hundredth.
Which of the following terms refers to a territory beyond what is known or settled?
Think about the services provided by the U.S., state, and local governments. Services are provided by governments to ensure the well-being of all citizens. Whic
I need answers about those mathematic problem
what does eight added to x look like
How are a religious group an ethnic group different