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

If a line has a slope of -2 and goes through the point (1,-3) then the equation for the line in slope-intercept form is what?
Simplify and Determine the coefficient of: Please help.
Which symptom is NOT typically associated with an allergic reaction to food?
Help me please………………………
(f) What do people do in picnics apart from eating?​
Correct answer gets 5 stars and brainliest
What are your national indenties? Make a List
Solve for y in terms of x. 2/3y-4=x A y= 3/2x+6 B y=-2/3x+4 C y=-3/2x+6 D 2/3x+4
What are fixed expenses? O A. The amount of money the retailer spends to buy each item from the wholesaler or producer B. All expenses that are the same fixed a
what positive changes have occurred on the earth the speaker visit​