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

Which box and whisker plot represents this data: 6,7,8,10,18,20,22,25,28,28,30,30?
what is 2/8 x 4/5 a.6/40 b.8/40 c.6/13 d.8/13
Write an equation in slope-intercept form: (1,6) and (2,3) are on the line
Which shape has a greater perimeter?
Solve this one right here 3y-5x=-12
An angle has a reference angle of 25° and its terminal side lies in Quadrant II. What are a possible positive measure and negative measure for the angle?
Without using a calculator, order the following numbers from least to greatest 10, Square root 78 ,9
You rent 3 DVDs and 4 video games for $25. The following weekend, your friend rents 6 DVDs and 8 video games for $54. Which of the following statements apply?
Amy owns 3 1/3 acres of farmland. She grows beets on 1/6 of the land. On how many acres of land does Amy grow beets? Plz
Please help and will give brainliest