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

write five 7 -digits numbers
what is the value of x? 2.5x = 35 x = 14 x = 16
short essay mexican american war
3n+7=15. NEED PLEASE ANSWER
What adjective best describes the tone of endgame? A) Whimsical B) Authoritarian C) Respectful D) Despairing
Given: 7/2x < 5. Choose the solution set.
What type of tissue correctly classifies the epidermis
Read these lines from "Beat! Beat! Drums!" by Walt Whitman. Into the solemn church, and scatter the congregation, Into the school where the scholar is studying.
the bugs May have thought all that wax tasted great fact or opinión
Which of the following does NOT describe agricultural conditions of the Southern Colonies? Rich, fertile plentiful farmlands Favorable climatic conditions Leng