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

plz help this is due tomarrow! Describe the most significant long-term effects of the Harlem Renaissance.
What are the types of polygons?
24 is 40% of what number? Use percent equation.
13. How does the poet’s use of the simile “I am like a cowslip turning / Toward the sky,” in lines 32–33, convey the speaker’s feelings about herself and her s
PLEASE HELP ME FASTTTTTT Input statements allow the user to enter data that a program uses to perform necessary computations. Users enter the data when they the
What were some of the major events that happened during Washington’s Administration?
Does the sound wave above experience a change in pitch or loudness? Why?
The mother told her son that he needed to mind her better. The meaning of the word mind in this sentence is A. one's opinion. B. to care. C. to obey. D.
Hi this is worth 50 points if you makeone worth 60 points
How is a story's conflict related to its plot?