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

A fortification is a noun or verd ?​
primero son los paréntesis y despues lo que sigue cuanto es 8×7(5÷6)
who of the following review Tagore gitanjali in 1913​
5. How can you tell the difference between CuS and Cu2S
How do I complete the atoms diagram?
What is the percent equivalent for 1/5? A. 0.2% B. 0.5% C. 20% D. 50%
How many natural numbers lie between 24² and 25²? ​
A compound consisting of atoms of small atomic mass is more likely to require what
Solve: -4 < -2x < 10
HELP!! Find the GCF for the list. -6x^2, 15x^3 Find the GCF for the polynomial 32xy-18x^2