public/subjects/nasa
davhojt 32be303ad4 docs(nasa): correct grammar 2022-05-31 08:27:51 +02:00
..
README.md docs(nasa): correct grammar 2022-05-31 08:27:51 +02:00

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".

Notions