You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
620 B

6 years ago
## range
### Instructions
Write the program which must:
6 years ago
- **Allocate (with make())** an array of integers.
6 years ago
- Fill it with consecutive values that begin at the first argument and end at the second argument (Including first and second !).
6 years ago
- That prints the array.
6 years ago
- In case of error you should handle it.
6 years ago
- And if the number of arguments is bigget or lower than 2 it should print `\n`.
6 years ago
### Expected output :
```console
student@ubuntu:~/range$ go build
student@ubuntu:~/range$ ./range 1 3
[1 2 3]
student@ubuntu:~/range$ ./range -1 2
[-1 0 1 2]
student@ubuntu:~/range$ ./range 0 0
[0]
student@ubuntu:~/range$
```