Solution: Types of Loops

Let's discuss the solution of the exercise.

We'll cover the following...

Problem

In this exercise, a target number is given for counting up or down to. Write a piece of code that prints this counting in the following manner:

  • If the number is 5 and the value of optionSelected is Up, the
...