|
|
@ -2,13 +2,10 @@ |
|
|
|
|
|
|
|
|
|
|
|
### Instructions |
|
|
|
### Instructions |
|
|
|
|
|
|
|
|
|
|
|
Create a `nasa` function that takes a number as parameter and returns all |
|
|
|
Create a `nasa` function that takes a number `N` as a parameter and returns |
|
|
|
numbers from 1 to the number passed as parameter, with three exception. |
|
|
|
a string with all numbers from 1 to the `N` separated by whitespace, with three exceptions: |
|
|
|
|
|
|
|
|
|
|
|
- For numbers divisible by 3, add 'NA'. |
|
|
|
- For numbers divisible by 3, add 'NA'. |
|
|
|
|
|
|
|
|
|
|
|
- For numbers divisible by 5, add 'SA'. |
|
|
|
- For numbers divisible by 5, add 'SA'. |
|
|
|
|
|
|
|
|
|
|
|
- For the number that are divisible by 3 and 5 add 'NASA'. |
|
|
|
- For the number that are divisible by 3 and 5 add 'NASA'. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|