**New course!**Every coder should learn

**Generative AI!**

+ 1

# Operators

I understand that if x=4 x*=3 The answer is 12. How does this work though? If x = x * 3 how can x be both the answer, and in the problem?

2 Answers

+ 3

Skipps
There is no difference.
x *= 3 is a short of x = x * 3
Same as above
x += 3 // x = x + 3
x -= 3 // x = x - 3
x /= 3 // x = x / 3

0

x=4
x *= 3
●x = x * 3
●x = 4 * 3
●x = 12