docs(rockandroll): upgrade instructions

This commit is contained in:
Tiago Collot 2022-10-18 18:06:34 +01:00
parent f6d0cc58a7
commit 27ef0d2782
1 changed files with 7 additions and 5 deletions

View File

@ -7,6 +7,8 @@ Write a function called `RockAndRoll()` that takes an `int` and returns a `strin
- If the number is divisible by 2, print `rock` followed by a newline `\n`.
- If the number is divisible by 3, print `roll` followed by a newline `\n`.
- If the number is divisible by 2 and 3, print `rock and roll` followed by a newline `\n`.
- If the number is negative return `error: number is negative` followed by a newline `\n`.
- If the number is non divisible return `error: non divisible` followed by a newline `\n`.
### Expected function