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

The Reconstruction Era lasted from __________ to _______. 1865, the election of Rutherford B. Hayes The end of the Revolutionary War, the beginning of Lincoln’s
Desperate will give brainlist and thanks "There was another factor that produced anti-Semitism. It was economics. Jews were often successful and provided compet
how big are yoongi's feet
Simply the expression -2.2f+0.9f-14-8
Why do people always leave they're dirty dishes in the sink? Correct the error
Find the missing numerator to make the following sentence true: 4/5 + ?/5 = 22/15
What generalization can you make about the equations?Use the drop-down menus to complete the explanation
what is -2 1/2+1 1/2​
Name 3 well-known authors from this time period and list a piece of their work.
Find the measure of angle zvy.