lucyrice6043 lucyrice6043
  • 22-02-2021
  • Computers and Technology
contestada

What is the output of this program?


numA=3

for count in range(4,7):

numA= numA+ count

Print(numA)


(YOU WILL BE MARKED AT BRAINLIEST)

Respuesta :

flyte013 flyte013
  • 23-02-2021

Answer:

18

Explanation:

the loop goes from 4 to 6

so after first loop numA = 3 + 4 = 7

second loop numA = 7 + 5 = 12

thirs loop numA = 12 + 6 =18

Answer Link
aidan24barry
aidan24barry aidan24barry
  • 24-03-2021

Answer:

18 is correct

Answer Link

Otras preguntas

Why were so few violations of the Sherman Antitrust Act brought to court?
The qualities of a hero brave fights for a cause leads others takes risks opposes injustice Which item should be a supporting point of level 2? a. fights for a
What is the purpose of the consumer price index? a. To determine the amount of tax revenues the government will collect b. To encourage employers to hire more w
Mao Zedong's charge to "learn revolution by making revolution" led to A. an attack on personal liberty B. an opening of the government C. economic prosperity D.
Consider the function f(x) = 4x2 + 5. Find the value of f(x) when x = 2
another word for walks on four legs
When we speak of the flavor of a word, we're talking about the extra understood meanings that it carries in addition to its main meaning. These extra meanings a
Do you think it was a wise political move for Nixon to visit Communist China and the Soviet Union? Why or why not?
Solve the following equation for L: P= 2L + 2W
If there is an 80% chance of rain and a 50% chance of wind and rain, what is the probability that it is windy, given that it is rainy? Round your answer to the