vegasviman vegasviman
  • 02-04-2022
  • Computers and Technology
contestada

How could the following line of code be shortened?

average = average + 1

Group of answer choices:

1.average + a

2.average += 1

3.average = + 1

4.average = 1 + average

Respuesta :

markmeadows67
markmeadows67 markmeadows67
  • 02-04-2022

Answer:

2

Explanation:

The second option is the only one that will work. The last would work but doesn't make the code any shorter.

Answer Link

Otras preguntas

centerville has a population of 9000. north fork has 18/25 population of centerville. what is the population of north fork?
Will every solid with the same dimensions have the same density?
What steps might a scientists take when he or she tests a hypothesis
What is 48 divided by 2 (9+3) =?
when you subtract one negative integer from another will your answer be greater than or less than integer you started with? Explain your reasoning and give exa
a ball bounces back .6 of its height on every bounce. if a ball dropped from 200 feet, how high does it bounce on the fifth bounce.
The Aztecs established an empire in _____.
6.974 rounded to The nearest tenth??? Can someone explain!!!!
show that 40 is one tenth of 400
Explain to a friend earth's deepest point is in the Mariana Trench in the Pacific Ocean. It is 35,840 feet below sea level. Is this about 36,000 feet below sea