triciayoungblood triciayoungblood
  • 18-11-2020
  • Computers and Technology
contestada

What is output? Select all that apply.
C = 0
while (c 10):
C = c + 5
print (c)

Respuesta :

handsomesquid807
handsomesquid807 handsomesquid807
  • 18-11-2020

Answer:

The answer is:

5

10

Explanation:

In the while loop, we specify, if C is not equal to 10, C += 5 and print(c). When python reads the loop, python will check to see if C is equal to 10 and if not it will add 5 until C is more than or equal to 10. In addition, python will print(c) to the console until it hits 10. Once C is less than or equal to 10 the loop will stop. In this scenario, since we print c in the loop, the codes output will be the following:

5

10

hope this helps :D

Answer Link

Otras preguntas

what is the solution of 2-3 ?
what is 36/3n simplest form
a number multiplied by two, decreased by four, is greater than nine.
according to the lemon law, if you are not satisfied with the purchase of your new car, your new car can be returned or replaced?
which action whould not be considered a "societal norm"?
Help! What is the length XY if the quadrilateral is an isosceles trapezoid? I thought 6 was the answer, but I was wrong.
bina ayat untuk timbang rasa and keluar masuk. anyone?
Jane is making a suit which requires 2 5⁄8 yards for the jacket and 1 3⁄4 yards for the skirt. What's the total amount of material she needs? A. 3 1⁄2
what is the resultant of two displacement vectors having the same direction?
what was nepoleons bonaparts policy towrds religion in france