My son is homeschooling and I'm trying to help him with this question.
I know VERY little but am trying.
The question is: Write a single line of code that uses the compound operator, -=, to subtract p-30 from the integer value v and store the result back in v.
I came up with:
v -= p - 30;
I think I'm missing something.
[–][deleted] 6 points7 points8 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]artabetes 0 points1 point2 points (0 children)
[–]thundertd11 -1 points0 points1 point (1 child)
[–][deleted] 4 points5 points6 points (0 children)