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

why do alkanes not appear in the periodic table?
how do i slove  5/9v+w=z, for v
A plant uses the energy from sunlight to create oxygen and glucose from carbon dioxide and water. Which statement is true about the changes that have occurred?A
how do you find the circumference of a circle with a radius of 4m
Which fraction is greater 2/3 or 7/9
One of the main arguments between the North and the South prior to the Civil War was tariffs. Tariffs were taxes people had to pay. The federal government put t
Sally's teacher tells her to find the masses of a sugar cube and a glass of water. Sally finds the masses to be 10 g for the sugar cube and 100 g for the glass
What is the round to the nearest million5,500,000
Which of these factors helped hide economic problems in the 1920s?
why do alkanes not appear in the periodic table?