prettymami1424 prettymami1424
  • 21-12-2020
  • Computers and Technology
contestada

What is the value of the variable result after these lines of code are executed?

>>> a = 2
>>> b = -3
>>> c = 4
>>> result = (a - b) * c
The value of result is
.

Respuesta :

goodLizard
goodLizard goodLizard
  • 25-12-2020

Answer:

20

Explanation:

We can substitute to find the value of result :

(a - b) * c = (2 + 3 ) * 4 (the '*' operator means to multiply)

= 20

Hope this helps :)

Answer Link

Otras preguntas

Is 6z-15 is greater than or less than 4z+11 solvable?
Can anyone tell me this answer? Share £420 in the ratio 2:3?
n+6=8n+6-6=8-__n=__I am having problems solving this problem....can you help
One number is 4 times as large another. The sum of their reciprocals is 45/4. Find the two numbers
How did glaciers change the land of the northeast region?
Kyle bought a 5 pound pumpkin for $2.60. how much did he pay per pound
Is 15f+9>5(5f+3) solvable? If so , what are the real numbers?
Use scientific notation to perform 0.07x1600/0.0004
Suppose you earn $7.25 per hour working part-time for a florist. Write and solve an inequality to find how many full hours you must work to earn at least $125.
Use scientific notation to perform 0.07x1600/0.0004