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

Describe how refraction is used in optical imaging and ultrasound imaging.
Describe the preoperational stage (2-6).
What comes after, "His personal philosophy draws heavily from Narodnaya Volya literature, for example"?
Fisher projection rules: How do you determine whether a molecule is coming out of the page or going into the page?
Circumference of the circular phase of a cylinder is 50 cm and its height is 12 cm. Find the volume of the cylinder.A) 1500 cm³B) 1800 cm³C) 2100 cm³D) 2400 cm³
Which term is used to describe a community effort to provide security to a group of homes? A. phone tag B. police watch C. group awareness D. neighborhood watch
For chest tubes, always go above or below the rib?
Suppose that your lab scores in a biology class were 61 out of 75 points in Lab 1, 17 out of 20 points in Lab 2, and 118 out of 150 in Lab 3. Compare your lab s
One reason for adolescent rumination is:
What do you call a text file containing Unix commands that are run just before the shell gives you a prompt?