Sammy288
Sammy288 Sammy288
  • 15-06-2022
  • Computers and Technology
contestada

Write a FOR loop that displays the following numbers exactly like this (you must use a loop):

3 7 11 15 19

Hint: notice the pattern of the numbers

-please use python :)

Respuesta :

tonb
tonb tonb
  • 15-06-2022

Answer:

Try this:

for x in range(3, 20, 4):  print(x, end=" ")

Explanation:

If you want every number on a new line, remove the , end=" " portion.

Answer Link

Otras preguntas

In order to prevent injury during your weight-training session, it is necessary to __________. A. do performance testing prior to setting up your workout routin
How does energy play a role in the situation of copper mills?
What were Ulysses S. Grant's hobbies and interests?
Long division 2÷7685
Which crop was very important to the Olmecs?
What makes up a populations gene pool
How does tobacco use affect the economy?
Which monomial function, y = ax^n, is described by the following statements? As x > 0 increases, f(x) decreases. As x < 0 decreases, f(x) decreases. A.)
A container holds 10 gallons of water. If 5/8 of a gallon is added to the container each hour, how many hours would it take to fill the container?
What innovations or changes helped bring about a change in women's roles in the 19th century?