128k views
1 vote
Write a for loop that prints the integers 0 through 39, separated by spaces.

User Mannopson
by
7.7k points

1 Answer

3 votes

Answer:

in Python:

for i in range(40):
print(i, end = ' ')

Step-by-step explanation:

User Katie Hudson
by
7.6k points