+ 1

What does +=, -= mean???

what does +=, -= mean???

16th Nov 2017, 10:11 PM
Vojtěch VACH
Vojtěch VACH - avatar
2 Respuestas
+ 8
x = 7; // Set x to 7 x += 5; // x = x+5; adding 5 to 7 making x equal 12 x -= 8; // x = x-8; subtracting 8 from 12 making x equal 4
16th Nov 2017, 10:17 PM
John Wells
John Wells - avatar
+ 1
thanks
16th Nov 2017, 10:19 PM
Vojtěch VACH
Vojtěch VACH - avatar