+ 4
What does += mean?
I've done some challenges in which i encountered a += b, but I don't know what it means. so I wondered if someone could tell me what it means.
2 odpowiedzi
+ 13
a += b is equivalent to a = a + b
a -= b is equivalent to a = a - b
a /= b is equivalent to a = a / b
a *= b is equivalent to a = a * b
+ 2
thank you so much Ismail Bina!