96.7k views
7 votes
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 :)

1 Answer

6 votes

Answer:

Try this:

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

Step-by-step explanation:

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

User Mathuin
by
3.3k points