Confused about += operator. Num2 += num1 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Confused about += operator. Num2 += num1

any explaination?

22nd May 2017, 7:34 AM
Wali
Wali - avatar
2 Answers
+ 6
'Num2 += Num1' it means: 'Num2 = Num2 + Num1' As I know it's just short way of writing this.
22nd May 2017, 7:51 AM
VendeTTa
VendeTTa - avatar
0
thanks for explanations guys
22nd May 2017, 4:34 PM
Wali
Wali - avatar