Computer Science, asked by lalitkumar9058, 6 months ago

4.7 code practice 1 edhesive

Answers

Answered by lastfirst16424
53

Answer:

for i in range(20, 31):

   print(i, end=" ")

Explanation:

yes

Answered by shilpa85475
1

Explanation:

c = 1

sum = 0

while (c < 10):

c = c + 3

sum = sum + c

print (sum)

The output is 21.

since c is less than 10

the value of c will be c=c+3

that is c=1+3=4

it will increment till the value of c is less than 10

hence, and finally print the sum that will be 21.

Similar questions