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.
16 lines
358 B
16 lines
358 B
4 years ago
|
## 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 12
|
||
|
>
|
||
|
> and `from10(7)` would log: 10 9 8 7
|