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

I do not get how to do Simpliflyng Radicals.
Patrick ate 3/5 of a small pizza. For lunch Saturday he4 ate 1/2 of the leftover pizza. How much pizza did he eat for lunch on Saturday?
why did jefferson's beliefs worry Federalists?
Why was the NATO created?
what is same about all myriapods
The ratio of the side lengths of two regular hexagons is 3 to 7. If the area of the smaller hexagon is 18 square units, then the area of the larger hexagon is _
What structure is common to all five kingdoms of living organisms?A. DNAB. NucleusC. Cell WallD. MitochondriaI know it is not C-Cell Wall.
Find the percent of decrease. 1800 to 1200
Explain why Britain's policy of appeasement failed to prevent the German expansion from 1937 to the takeover of Czechoslovakia in March 1939.
The ratio of boys to girls in a school are 2:3 there are 1100 pupils in the school how many are boys ?