Maximilian S.

asked • 02/01/17

while loop to display the integers from 0 to 200 in increments of 25, all on one line separated by a single space.

i need to program a while loop to display the integers from 0 to 200 in increments of 25, all on one line separated by a single space.Then use a for loop and the range operator to display the same integers in descending order. See example output.
 


Example Output
0 25 50 75 100 125 150 175 200
200 175 150 125 100 75 50 25 0

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.