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

Can someone please help me? Is the answer 42?
Please help!!!!' Brayden invested $510 in an account paying an interest rate of 3 3/4 % compounded monthly. Sarah invested $510 in an account paying an interest
HELP PLEASE IM STUCK
2. Similarities and differences between public speaking and conversation.
El sr. Hernandez le presta el sr. Martinez $5000 al 5% de interes capitalizado cada año, ¿cuánto pagara El sr. Hernandez le presta el sr. Martinez $5000 al 5% d
Why is x so important
which one does pass through line of wire during electric current flow? electrons or protons?​​
Cos^(2)A/1+sinA Simplify Trigonometric Expressions
If the relationship between x and y is quadratic, which value of y completes the table? x: -3 -1 1 3 5 y: 21 7 ? 27 61 A) 3 B) 7 C) 9 D) 17 Pl
In a scale drawing, a building has a length of 15 cm. The actual length of the building is 37.5 feet. Whats the scale of the drawing?​