0

Whats is rhe meaning of "total += number" in the example?

28th Feb 2017, 9:54 AM
Shrey Mudgal
Shrey Mudgal - avatar
3 Answers
+ 2
it means total = total + number; the same is with -= total = total - number;
28th Feb 2017, 9:57 AM
Melvin2204old
Melvin2204old - avatar
+ 1
Its really useful. If you want to add 4 to variable you'd just type x += 4;
28th Feb 2017, 12:06 PM
Chase
0
thanks to all for replying.😀
28th Feb 2017, 4:15 PM
Shrey Mudgal
Shrey Mudgal - avatar