yoxiqy yoxiqy
  • 10-09-2017
  • Computers and Technology
contestada

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

Respuesta :

kaevras
kaevras kaevras
  • 10-09-2017
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.
Answer Link

Otras preguntas

Write a story problem that involves multiplying a decimal less than 2 by a decimal less than 1 include the solution and the work you did to find it
What is the worst way to persuade someone?
What is the difference between Convergence and Convection(global winds)
Health promotion is an indirect way of improving public health. Health protection involves direct action to curb the growth and spread of diseases. Which of th
Plants obtain nitrogen from the: soil atmosphere water table respiration of animals
An example of a cabinet department is the
the sum of 15 and the product of 5 and v
how do you circle the blend in each word
The water cycle is also referred to as the _______ cycle. a. hydrogen b. hydrologic c. watershed d. oxygen
charges move freely through what?