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

Manny bought 12 pounds of vegetables at the supermarket. 75% of the vegetables were on sale. How many pounds of vegetables were not on sale? 98 POINTS :)
factorize:x^3+16x^2+11x+6
Pleeeeeease help me soon
Fred has a spinner that is split into four equal sections: red, blue, green, and yellow. Fred spun the spinner 688 times. Which of the following would be a good
Please help me for algebra
What does the sign of the slope tell you about a line?
Please help ASAP Brainiliest and extra points
Aubrey read 29 books and Eli read 52 books what number is equal to the number of books Aubrey read?
What are greenhouse gases?
Provide one reason why mitosis occurs.