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

Following the attacks of 9/11, the United Nations authorized a show of force against this nation for harboring terrorists. Iraq Afghanistan Pakistan Saudi Arabi
How do state constitutions control the economy? a. set trade with other states c. settle debts with the federal government b. coin monies d. decide how to raise
A business which sells goods to the consumer is known as a
American agencies that mobilized the nation for war _____ the power of the government over industry. A. Decreased B. Increased C. Stabilized D. Stagnated
Matched chromosomes carrying information about the same characteristics in the organism are called _____ chromosomes. homozygous homologous diploid haploid
Find a polynomial function of degree 3 with real coefficients that has the given zeros. -1, 2, -8 The Polynomial function is f(x)=x^3+___x^2-10x-16
With a diameter that's 11 times larger than Earth's, _______ is the largest planet. A. Jupiter B. Mars C. Saturn D. Venus
You are buying floor tile to cover a room that measures 13 feet by 22 feet. The tile is priced at $19.50 per square yard. How much will the tile cost?
Write the equation of the line perpendicular to 2x-3y=12 which passes through the point (16,-7).
What is the most abundant fossil fuel? A. Oil B. Coal C. Gas D. Wood