113k views
0 votes
Write a for loop to print the numbers 88, 84, 80, ...44 on one line. Expected Output 88 84 80 76 72 68 64 60 56 52 48 44

User Dany Maor
by
4.3k points

1 Answer

5 votes

The solution in python is:

for x in range(88, 43, -4):

print(x, end=" ")

I hope this helps!

User Paul Groke
by
5.9k points