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

% of adult daily smokers who began to smoke by age 18 A) 80% B) 90% C) 95% D) 99%
Which of the following is correct ? Quoting is the using the author’s actual words
What was Republican Motherhood and how did it change understandings of gender?
the temperature was -15 F and fell 10 F
inequality 3x -6 ≤ -3
A rectangle has an area of 40 square feet. Select all the possible dimensions of the rectangle D 10 in., 30 in. A 4 ft, 10 ft B 20 ft, 20 ft C5 ft, 8 ft E 1 in
Three problems school leavers may face when applying to higher education institutions
The circumference of a circle is 11piπ cm. Find its radius, in centimeters.
You say me When you count by tens. I am the 7th number you say when you start at 10. Then I am……
l need the answer ASAP. the sum of interior angles of a regular polygon is 1800°.Find the size of each exterior angle​