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

China was easily defeated by the British in the first Opium War because?
Can someone pretty please help me? The problem: Write about a real-world situation that can be solved using a two-step equation.
how do i solve 7x-y=21
how old am i if 200 reduced by 2 times my age is 16
You have 44 text messages in your inbox. Your inbox is 88% full. How many messages can your cell phone hold?
How did the Constitution overcome the weaknesses of the Articles of Confederation? The new plan of government centralized power in the federal government at the
How are populations limited in ecosystems?
-5g+2.3= -18.8 im in seventh grade and can't figure out this equation... ughhh
a Norfolk pine is 18 inches tall and grows at a rate of 1.5 feet per year
This is about angles. Please answer someone?