103k views
0 votes
4.8 code practice question 2

4.8 code practice question 2-example-1
User Jsedano
by
4.7k points

1 Answer

5 votes

Answer:

Written in Python

for count in range(88, 42,-2):

print(count,end=' ')

Step-by-step explanation:

The programming language is not stated.

However, I used python to answer the question.

First, we need to loop from 88 to 44 with a difference of -2 in each term.

This is implemented as

for count in range(88, 42,-2):

Which means to start at 88 and ends at 42 - (-2) which is 44 with an increment of -2

Next, is to print the current iterating value;

This is implemented using print(count)

However, since all values are to be printed on a line, there's a need t modify the statement as: print(count,end=' ')

User SmallChess
by
5.6k points