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

the use of some fertility drugs can increase the probability of having fraternal twins to 1in 5. The probability of having identical twins is unaffected. How mi
please help me on the question​
Select the correct answer Is this a SENTENCE? Our clothes to the dry cleaner. OA Yes OB. No
अंतर्राष्ट्रीय महिला दिवस मनाने का सबसे पहला और प्रमुख उद्देश्य क्या था,?
Find dy/dx if 3xy=4x+y^2
Why corruption is a social problem? Describe​
If you had a broom of your own, what would you like to do with it and where would you like to go? i am a potter head hehe
why is the caste system introduced by the Jayasthiti Malla considered as a social reform​
Which element atom will form a LARGER radius when it becomes an ion? Na Mg Al Cl
pls answer quickly and include details