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

why did many aristocrats support legalism
luke jogged a total of 56.5 miles last week. if luke jogged the same distance,d, each day for 3 days and half that distance on each of the reamaining days, whic
if hares with long legs run faster than hares with short legs, which hares do you expect would be most likely to survive and reproduce
write an equation in point-slope from for the line that has a slope of 6and contains the point (-8, -7)
what is 140/216 in simplest forms
which is an example of an intentional injury
What would be most useful to help make a simple compass a nonmetal bar,a round metal can,a small iron nail,or a Quartz needle
1. What is the value of the expression below? Please show work 3⁴+9= A.21 B.39 C.43 D.90 2. Which expression is equivalent to 5(d+1)? Please show work A.5d+5 B.
what produces the motion of air convection
why did many aristocrats support legalism