+ 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
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
2 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes