|
|
@ -23,19 +23,19 @@ Here is a possible program to test your function: |
|
|
|
package main |
|
|
|
package main |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|
"fmt" |
|
|
|
"fmt" |
|
|
|
"piscine" |
|
|
|
"piscine" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
func main() { |
|
|
|
fmt.Println(piscine.RockAndRoll(4)) |
|
|
|
fmt.Println(piscine.RockAndRoll(4)) |
|
|
|
fmt.Println(piscine.RockAndRoll(9)) |
|
|
|
fmt.Println(piscine.RockAndRoll(9)) |
|
|
|
fmt.Println(piscine.RockAndRoll(6)) |
|
|
|
fmt.Println(piscine.RockAndRoll(6)) |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
|
And its output: |
|
|
|
And its output: |
|
|
|
|
|
|
|
|
|
|
|
```go |
|
|
|
```console |
|
|
|
rock$ |
|
|
|
rock$ |
|
|
|
$ |
|
|
|
$ |
|
|
|
roll$ |
|
|
|
roll$ |
|
|
|