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

(link to the maths question) can anyone help?
Evaluate each expression. 1. 56/b for b=7 2. v+16 for v=9 3.2(4e) for e=5
what is 3/5 of 3 3/4
Which of the following is true for the graph of the quadratic function f(x)=2x^2-10x+12 A. The vertex of the function is the point (5/2), (-1/2) B. The y-in
how to explain why a trapezoid is a quadrilateral but a quadrilateral is not always a trapezoid
When two fractions are between 0 and half how do you know which fraction is greater explain
is 5000 cm bigger than 5 m
How many more equal sides does an equilateral triangle have than a right isosceles triangle?
New Groton, Connecticut, is the location of the A. National Oceanic and Atmospheric Administration. B. Coast Guard Academy. C. Air Force Academy. D. Naval Comma
71 is 10 less than my number