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 eco zones? why is this important?
If snow is falling at a rate of 1/4 inch every 30 minutes, how much snow will fall in 4 1/2 hours.
How do you fins the sum of 2/10 and20/100?
By which name was William the Conqueror known in his native land?
Compare and contrast centipedes and millipedes
If snow is falling at a rate of 1/4 inch every 30 minutes, how much snow will fall in 4 1/2 hours.
how does data help us make decisions?Ask your question here
the product of two consecutive positive even integers is 14 more than their sum
By which name was William the Conqueror known in his native land?
Eric and Frank want to equally share 4/3 feet of rope. What length of rope should each friend get? Explain how to use a drawing to help solve the problem.