dillonseanbarr dillonseanbarr
  • 23-10-2020
  • Computers and Technology
contestada

Does anyone know the answer to 4.3 Code Practice: Question 2 for writing a program that uses a while loop to calculate and print the multiples of 3 from 3 to 21 in edhesive?

Respuesta :

Cytokine
Cytokine Cytokine
  • 23-10-2020

In python:

i = 3

while i <= 21:

   if i % 3 == 0:

       print(i)

   i += 1

I hope this helps!

Answer Link

Otras preguntas

How do conservationists make use of watersheds and ecozones? Why is this important?
How did America end up going to War with Iraq?
How are boundaries between river systems and natural vegetation regions different?
How did America end up going to War with Iraq?
10 lines on Good manners for class 1 student
Electrolysis of a dilute solution of aqueous sodium chloride results in the cathode product a. Sodium b. Hydrogen c. Chlorine d. Oxygen e. peroxide
A test tube containing CaCO₃ is heated until the entire compound decomposes. If the test tube plus calcium carbonate originally weighed 30.08 grams and the loss
What is x2 -6x-23=0 using square roots
What is the x-coordinate of the point in the standard (x,y) coordinate plane at which the 2 lines y = 2x + 6 and y = 3x + 4 intersect? Can you please explain wi
How do conservationists make use of watersheds and ecozones? Why is this important?