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 steps might a scientists take when he or she tests a hypothesis
is cold fusion science or pseudoscience
The temperature of an oven went from 320° to 280°. What was the percent decrease in temperature? a. 14.3% b. 1.25% c. 12.5% d. 1.43%
solve 5 ones 3 tenths -0.53
What did french aristocrats do in an effort to keep their privileges?
what is the context clue for the word grabbed
is 9.777..... a whole number, integer,rational number, irrational number, real number.
a king or queen rules the country
Which best describes the underlined word in the sentence? Throughout the world, there is much *evidence* for ancient astronomers. A. complete subject B. simp
How do you write 0.334 in expanded form?