Coding Exercise: Types of Loops
Let's test your skills with loops.
We'll cover the following...
Problem
In this exercise, a target number is given to count up or down to. Write a piece of code that prints this counting in the following manner:
- If the
number
is5
and the value ofoptionSelected
is