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

which trinomial is equivalent to (3x-1)(x+4)
Explain what is the same about two fractions that are like fractions
which trinomial is equivalent to (3x-1)(x+4)
having troubles with inequalities.. 3.8x + 14.5 < 32
having troubles with inequalities.. 3.8x + 14.5 < 32
which trinomial is equivalent to (3x-1)(x+4)
Explain what is the same about two fractions that are like fractions
what is the sum of 7/10 and 6/100
Explain what is the same about two fractions that are like fractions
having troubles with inequalities.. 3.8x + 14.5 < 32