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

4.1.3 Quiz: Understand Humans and the EnvironmentQuestion 3 of 10Which two kinds of structures are most common in green literature?OA. Compare-and-contrast and
In your own words, define and give an example of each of the following statistical terms. a. population b. sample c. parameter d. statisitc e. statistical infer
What led to the massive reduction of methane in the atmosphere?a. fungib. bacteriac. plantsd. protistse. archaea
Please give me three examples of different ORDER OF OPERATION problems step by step as shown on pictures as example
Please give me three examples of different ORDER OF OPERATION problems step by step as shown on pictures as example
Which sentence correctly uses the conditional tense?A Seríamos las once de la noche cuando Elvira me llamó.B Sonó el teléfono. ¿Llamaría Emilio para cancelar nu
PLSSSSS HELP IF YOU TRULY KNOW THISSSS
Within parliamentaryprocedure, when is aquorum reached?A. when the guest speaker arrivesB. when the first member steps intothe meeting venueC. when the chairper
Two iron workers stand 150 m apart. One strikes a steel beam with a hammer. How long does it take for the other to feel the sound through the beam? Assume that
1. Allowing women panchayats inthe villages of Chhatisgarh.2.​