jhugh68
jhugh68 jhugh68
  • 16-09-2020
  • Computers and Technology
contestada

Consider the following code:
x=9 y = -2 z=2
print (x + y * z)
What is output?

Respuesta :

cetojonathan309
cetojonathan309 cetojonathan309
  • 18-09-2020

Answer:

14

Explanation: The reason why is because adding a negative is pretty much subtracting by 2. 9-2=7. Then multiply 7 by 2 like add 7 to 7 and you get 14.

Answer Link

Otras preguntas

What does the metaphor in the line" it withers quicker than the rose" imply? From the excerpt " to An althelte dying from young" by A.E Houseman
Bee Sting bought 400 shares of Google at $399.75 per share. Assume a commission of 2% of the purchase price. What is the total to Bee?
At what rate is electrical energy being converted to other forms in the 8.0-v battery?
I need help step by step
Please help me with this, thanks
Distinguish between a plain & plateau .
Most of earth's freshwater is _____. a. in the ocean b. in lakes and rivers c. frozen in glaciers and ice caps d. found underground
Match each number to correct letter. 1. protons plus neutron a] atomic mass 2. proton number
Cassidy says that capacity is the same as the amount Do you agree
If the area of the rectangle shown is 150 square feet, we can use the equation 2x2 - 5x = 150 to find its dimensions. If the solution to the equation is x = 10,