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

What is the prefix in the word remodeling? -ing re- model remod-
Which of the following are the ADVANTAGES of Westward Expansion
Brainliest question please help me now plz
Read this excerpt from "What I Hope to Leave Behind." For a number of years it took so much vitality to keep the home going, and that home represented so many d
What is the length of the diagonal, d, of the rectangular prism shown below?
Ravi was surprised to see his aunt at his house when he returned from work. How many prepositional phrases are there in the sentence above? A. 2 B. 3 C.
3. Tanya needs to buy dirt for her children's playground. The dirt costs $8 per ton, and there is a delivery cost of $12 with each order. If Tanya needs 5.5 ton
A railroad runs form city A to city B, a distance of 800km, through mountainous terrain. The present one-way travel time (including time at intermediate yards)
I WILL MAKE BRAINLIEST AND 30pts. FAST AND HELP ME
Please help me on this question