X += n | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

X += n

n = any normal number x += n but we can't use x =+ n Because if you use the latter, it will be presumed as x = n, but the former means x = x + n to make it easier, it is like x + moving as a whole to the other side of the equation, so x+=n would be x = x + n Thanks

28th Mar 2018, 12:14 AM
Medo Hamdani
Medo Hamdani - avatar
1 Answer
0
Assignment Operators: x+= 1; is equal to x= x+ 1; x-= 1; is equal to x= x- 1; x*= 1; is equal to x= x* 1; x /= 1; is equal to x= x/ 1;
28th Mar 2018, 1:39 AM
raja
raja - avatar