0

What s +=?

11th Jul 2017, 4:16 PM
Solal Carcy
Solal Carcy - avatar
3 Respostas
+ 2
s = 5 s+= 3 means s = 8 in other words it's s = s + 3 you add the right veriable to the left which means since our s = 8 now doing s -= 4 will subtract 4 from s so now s = 4
11th Jul 2017, 4:40 PM
erez
erez - avatar
+ 1
"x+=y" is the same that "x=x+y". "+=" is a abbreviation of a sum where one term (x) will receive your value more the value of the "y".
11th Jul 2017, 5:34 PM
Marlon Wilson
0
Gotta say I'm impressed by how nice this community is. I came here and almost expected commentors ranting at the asker for not having read the explanation earlier in the lessons, but you go ahead and simply explain.
12th Jul 2017, 11:52 AM
Erik Pa
Erik Pa - avatar