cobidadon cobidadon
  • 04-02-2021
  • Computers and Technology
contestada

In the code below, what's the final value of the variable x?
var x = 10;
X = x + 7;
X = X* 3;
A:51
B:34
C:10
D:21

Respuesta :

KatelynnAnlage
KatelynnAnlage KatelynnAnlage
  • 04-02-2021
A 51

x=10 so we substitute 10 into the spots for x in the beginning

x=10+7

x=17*3

x=51
Answer Link
kirabowen15
kirabowen15 kirabowen15
  • 04-02-2021
If bar x = 10 ;

Where you see the var x replace it with 10.

X = x + 7
X = 10 + 7 = 17

Substitute the value of the first var X in the equation

X = X* 3
X = 17 * 3 = 51

Therefore the final value of var x is 51 option A
Answer Link

Otras preguntas

Find the missing side and angle measures in triangle ABC. Round your answers to the neFind the missing side and angle measures in triangle ABC. Round your answe
Help with is ixl please
A population of 50 foxes in a wildlife preserve doubles in size every 14 years. The function y = 50.2*, where x is the number of 14-year periods, models the pop
What is 4.5 repeating as a fraction?
A 16.0 kg canoe moving to the left at 10 m/s makes a head-on collision with a 19.0 kg raft moving to the right at 7.0 m/s. After the collision, the canoe moves
All are true about the American Revolution EXCEPT Many soldiers died from cold and disease at Valley Forge. The colonists did not receive any foreign aid during
Find the missing side and angle measures in triangle ABC. Round your answers to the neFind the missing side and angle measures in triangle ABC. Round your answe
Differentiate between an organic combustion reaction and an inorganic combustion reaction.
Help with is ixl please
The cells ____ and shrivel up