Ask Question
16 November, 13:39

Suppose that sum is an int variable. The statement sum + = 7; is equivalent to the statement sum = sum + 7;

+5
Answers (1)
  1. 16 November, 15:00
    0
    That's correct.

    Same goes for - = * = and / =

    It essentially just means "Do this, to this variable".

    sum + = 7 "Add 7 to sum"

    result * = 10 "Multiply result by 10"

    So on, and so forth.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Suppose that sum is an int variable. The statement sum + = 7; is equivalent to the statement sum = sum + 7; ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers