|
|
@ -23,11 +23,11 @@ package main |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|
"fmt" |
|
|
|
"fmt" |
|
|
|
student ".." |
|
|
|
piscine ".." |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
func main() { |
|
|
|
middle := student.Abort(2, 3, 8, 5, 7) |
|
|
|
middle := piscine.Abort(2, 3, 8, 5, 7) |
|
|
|
fmt.Println(middle) |
|
|
|
fmt.Println(middle) |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
@ -35,8 +35,8 @@ func main() { |
|
|
|
And its output : |
|
|
|
And its output : |
|
|
|
|
|
|
|
|
|
|
|
```console |
|
|
|
```console |
|
|
|
student@ubuntu:~/student/abort$ go build |
|
|
|
student@ubuntu:~/piscine/test$ go build |
|
|
|
student@ubuntu:~/student/abort$ ./abort |
|
|
|
student@ubuntu:~/piscine/test$ ./abort |
|
|
|
5 |
|
|
|
5 |
|
|
|
student@ubuntu:~/student/abort$ |
|
|
|
student@ubuntu:~/piscine/test$ |
|
|
|
``` |
|
|
|
``` |
|
|
|