Quanboy57 Quanboy57
  • 09-12-2020
  • Computers and Technology
contestada

Write a program that uses a while loop to calculate and print the multiples of 3 from 3 to 21. Your program should print each number on a separate line.

Respuesta :

allways0408 allways0408
  • 09-12-2020

i = 3

while i <= 21:

  if i % 3 == 0:

      print(i)

  i += 1

Answer Link

Otras preguntas

which graph represents a quadratic function which has a factor of (x + 3 ) and (x - 5)?
Read the sentences and match each sentence with the correct word or words it refers to, based on what you learned in the lesson.MatchTermDefinitionPiece of clot
Hometown/city, its history, pros and cons of living there, etc.
Determine which of the following points are included in the solution set to the following linear inequality. 3x 4y<12
Although Hubek school is normally associated with good performance in the national examinations, mountains of trash are a common eyesore in the school. The scho
2.a.b.Which physical property of molecules of a gas gives a measure oftemperature?[1]A steel wire 8m long and 4mm in diameter is fixed to two rigid
What is the volume of this cylinder? Use n≈ 3.14 and round your answer to the nearest hundredth 24ft width, 19ft height
5.4n -(-7) - 7.86n + 3.03
What is the Allusion for dragon
Chemistry addresses environment issues such as renewable and non-renewable energy, solutions regarding chemical or oil spills, Climate change,plastics, and much