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

An investment of $2000 in a bank account doubles every five years. The function that models the growth of this investment is f(x)=2000•2^x, where x is the numbe
why is 5/12 greater than 3/4
why is 5/12 greater than 3/4
find the buying price of each of the following when 5% sales tax is added on the purchase of;1. a pillow for RS. 60 2. two bars of soap at RS.25 each
Why are there fewer traditional economies today?
who were the real rulers of sparta?
why do all normal cells in human body have same number of chromosomes?
Terry has between 50 and 100 pennies and her piggy bank. She can count them two at a time and come out even. She can also count them three and five at a time an
Gravity and friction are two kinds ofa.inertiab.forcesc.massesd.gravity
An investment of $2000 in a bank account doubles every five years. The function that models the growth of this investment is f(x)=2000•2^x, where x is the numbe