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

Marco's Drama class is performing a play. He wants to buy as many tickets as he can afford. If tickets cost $2.50 each and he has $14.75 to spend, how many tick
Based on the observations by the Persian historian Wassaf, why do you think the Mongols were such successful conquerors?
Why did many people in Mecca reject Muhammad’s ideas at first?
What were the 4 New England colonies?
If the volume for 3-D polyhedra A is 400 cm3 and the volume for 3-D polyhedral B is 800 cm3. How many times bigger is the volume of pyramid B than pyramid A?
How did the American public react to televised scenes of Birmingham's police force turning dogs and fire hoses against peaceful civil rights marchers? a. Northe
Sound waves strike a glass and cause it to shatter. This phenomenon illustrates (1) resonance (3) reflection (2) refraction (4) diffraction
what event brought the United states into world war 1
The ring on Leslie's right hand was a gift from her boyfriend subject is?
An objects speed can be modeled with the equation s=24(1.06)^t where s represents its speed in miles per hour and t represents the amount of time that has passe