afrade0001 afrade0001
  • 17-12-2020
  • Computers and Technology
contestada

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

Respuesta :

asarwar
asarwar asarwar
  • 17-12-2020

Answer:

The output of this question is 21. As show in the image

The explanation is given in below

Explanation:

Let first write the question

C=1

sum = 0

while(C<10):

C=C+3

sum=sum + C

print(sum)

Now Focus on

while(C<10):

C=C+3

sum=sum + C

The value of C is initially 1

C=1+3

Sum= 0+4

In second loop the value of C will become 4

c=4+3

sum=4+7

In third loop the value of C will be 7

c=7+3

sum=11+10

so the answer is 11+10=21

Ver imagen asarwar
Answer Link

Otras preguntas

a topic sentence introducing a main fact allowed by supporting details should appear in?
What is quadratic equation? Can you give me an example?
how did the stuarts deal with parliament
¡inténtalo! vol_textbook indica el presente de estos verbos reflexivos. december 04 11:59 pm 3 attempts remaining grade settings vocabulary list grammar explana
After the French and Indian War, tension between colonists and the British government increased because the British increased taxes. British troops refused to l
Why does o'brien use martha in the things they carried?
Solve the inequality. 16 < k + 10
the quotient of z and 4 please help me.
A rectangular pool is twice as long as it is wide. What are the dimensions of the pool if the perimeter is 42 yd?
What is the percent increase of 16 to 20