Ask Question

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

+5
Answers (1)
  1. 20 April, 12:52
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers