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.
davhojt
32be303ad4
|
3 years ago | |
---|---|---|
.. | ||
README.md | 3 years ago |
README.md
Nasa
Instructions
Create a function named nasa
that takes a number N
as an argument and returns a string with all numbers from 1 to N
separated by spaces. There are three exceptions:
- Convert numbers which are divisible by 3 to
"NA"
. - Convert numbers which are divisible by 5 to
"SA"
. - Convert numbers which are divisible by 3 and 5 to
"NASA"
.