mirror of https://github.com/01-edu/public.git
8d2a02f417 | ||
---|---|---|
.. | ||
README.md |
README.md
Count from 10
Instructions
Declare from10
function that takes an end
number argument.
You must log each number starting at 10
until you reach the end
value
(included)
If the number is lower than 10
you must count down to it, otherwhise count up
to it.
Example:
from10(12)
would log: 10 11 12and
from10(7)
would log: 10 9 8 7