+ 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.

17th Dec 2016, 10:31 PM
Thomas van der Zanden
Thomas van der Zanden - avatar
2 Réponses
+ 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
17th Dec 2016, 10:44 PM
Ismail
Ismail - avatar
+ 2
thank you so much Ismail Bina!
17th Dec 2016, 10:46 PM
Thomas van der Zanden
Thomas van der Zanden - avatar