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

What are some negative effects that drug abuse can have on a community?
6 Solve the system of equations using substitution. y = x + 6 y = -2x - 3 (1,7) (-3, 3)
Can you please do 15 and 16
Page 27. Donald has 6 unit cubes. How manydifferent rectangular prisms can hemake using all 6 unit cubes?​
A physical map uses to indicate elevation and features
Write a counterclaim on wheter you should eliminate cash
use the system of equations and graphs below to complete the sentences ​
Please answer 19,20,21
thirty-five maths majors, 33 music majors, and 45 history majors are randomly selected from 251 math majors, 518 music majors 332 history majors at the state un
Indicate the appropriateness of the subject for a four- to a six-page research paper by answering the following question. Is the following topic suitable for a