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

Although each of these amendments expanded voting rights in America, "Jim Crow laws limited the right to vote for African Americans. How were these laws overtur
How does our DNA cause us to have physical traits?
what is a country seat? explain the relationship between a county and a county seat.​
“Yes, I like you―as a friend.” A. an unfinished thought B. pause C. interruption D. calling attention
Blue Cross established its first hospital insurance plan at what university in 1929 by agreeing to provide 1,500 teachers with 21 days of hospital care per year
7. When someone purchases a new car and begins to drive it, the mileage (meaning the number of miles the car hastraveled) Immediately increases. Let x represent
QUICK!!!!!! Where can you buy food and drinks in la Plaza Mayor in Quito?
Can anyone help me out ?
Which phrase best describes protest music? e music that promotes leftist ideals and communist principles music that talks about peace, freedom, justice, environ
help a brother out :')​