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

Please help me!! <3 I would appreciate it!
2. Answer the following: • a. How do you feel after dancing for 3-5 minutes? • b. Did the dance routine you have followed make you feel better? Why or Why not?
help ill give brainlest pls
a recipe for lemenade calls for 1 cup of sugar and 5 cups of water. how much suger is used per cup of water
When it comes to historical research, which type of source (primary or secondary) do you think is better?
help ill give brainlest pls
What is the approximate measure of the length of the tennis court, x? PLEASE HELPPPP!!!!!!!!!! 49.9 ft 72.0 ft 93.1 ft 78.0 ft
Because energy is conserved, the “lost” energy has actually been changed into other forms. Looking at the two sleds, what effect did some of this energy cause?
HELP Please I BEGGING YOU
Last tuesday evening, Aaron, the car wash owner, found he had 90% more quarters than dimes. If the combined value of Aaron's quarters and dimes is $69, how many