23jrojas 23jrojas
  • 26-02-2021
  • Computers and Technology
contestada

What is output? c = 1 sum = 0 while (c < 10): c = c + 3 sum = sum + c print (sum)

Respuesta :

tonb
tonb tonb
  • 26-02-2021

Answer:

21

Explanation:

The values of c that make it into the loop are 1, 4, 7.

The values that are added to sum are 3 higher, i.e., 4,7 and 10.

The sum of those is 21.

p.s. why did you not run the program yourself?

Answer Link

Otras preguntas

How do you think the world was created?
How do you tell if an equation is linear or not????
Pyrenees mountains border Spain and this European country starts with F
Water on each side of a divide flows in...
Which statement illustrates the distributive property? Please help
Water on each side of a divide flows in...
Rio grande river separates what Texas city from Mexico starts with E
What is the difference between preterite and imperfect and the past progressive and present progressive?
What is 36 percent as a decimal?
What is the difference between preterite and imperfect and the past progressive and present progressive?