what would the following code do: x = y=7
Answers
Answered by
0
Answer:
values of both x and y will be 7
Answered by
0
Answer:
It would set the values of both variables x and y to 7
Explanation:
It can be solved by working backwards.
y=7 assigns value of 7 to y.
x=y assigns value of y to x, in this case the value is 7 so x will be assigned the value 7.
so, x=7 and y=7
Hope it helps :D
Similar questions
Math,
2 months ago
Math,
2 months ago
English,
4 months ago
Science,
4 months ago
Accountancy,
9 months ago