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

At school of the girls who tried out for the basketball team 12 were selected . Of the 40 boys who tried out 16 were selected are the ratios of student the equi
Covalent bonds are in the air you breathe and the water you drink. How are covalent bonds formed?
Identify the nation that exerted imperial control over India, impacting their language and religious beliefs. A. China B. Germany C. Britain D. Argentina
what is 350 over 100 in simplest form
10/18=c/4.5 what is c
Why did Mesopotamian farmers set up irrigation systems
What is the greatest common factor of 117 & 351 And What is the greatest common factor of 35 & 149
What route did christopher Columbus take
F(x)=x^2+1;g(x)= x-3 Help me find (f•g)(x)
What is 3 divided by 75?