Ask Question
20 February, 02:15

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

+4
Answers (1)
  1. 20 February, 03:15
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers