mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Clement Denis
8d2a02f417
|
4 years ago | |
---|---|---|
.. | ||
README.md | 4 years ago |
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