What is output of following code −
x = 2
y = 10
x * = y * x + 1
Answers
Answered by
4
Answer:
X=2
y=10
X*=y*x+1
it can be written as
x=x*y*x+1
that means
X=2*10*2+1
X=41
Answered by
3
Answer: 42
Explanation:
As the output of the following given code is -
x = 2
y = 10
x * = y * x + 1
As x * = y * x + 1 can be written as x=x*(y*x+1)
x=2(10*2+1)
x=2(21)
x=42
Hence, the output of the following given code is 42.
#SPJ3
Similar questions