Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+16 votes

On BJP4 Exercise 4.6: printRange, the second line of the output is counting down the numbers. What strategy would be a good one to use on this exercise?

asked in CSC211_Winter2018 by (1 point)

1 Answer

+13 votes

I think you have to look at the examples and consider what is the difference between the three examples: counting up, counting down, and staying the same. Then you look at the parameter to see the reason why they have different run. Each one has each condition for it to run like that. So that, you should use conditional statements. There will be three conditions in this problem.

answered by (1 point)
...