New course! Every coder should learn Generative AI!
Try a free lesson0
What are += and -=?
2 Answers
+ 3
You should see it in the assigning and incrementing operators lesson
Example:
int x = 10;
x+=4 // x = x + 4
or
x-=5// x = x - 5
This is the example from the lesson
+ 1
Thanks for explanations!