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

Neil had some olive oil.  He used 1/5 liter to make a salad dressing.  There was 1/2 liter of olive oil remaining in the bottle. What amount of olive oil did Ne
How did the booming economy of the 1920s lead to changes in American life?
How were the democratic and republican parties formed?
Find the 40th term of this arithmetic sequence.
How are boundaries between river systems and natural vegetation regions different?
what word best describe chlorophyll
How many miles did the the russian empire stretch from east to west in 1861
There are 376 stones in three piles. The second pile has 24 more stones than the first. The third pile has twice as many stones as the second. How many stones i
How many moles of sodium hydroxide are produced when 1.00 mol sodium peroxide reacts with water
What does tengo mean in Spanish?