mirror of https://github.com/01-edu/public.git
Augusto
5 years ago
committed by
Christopher Fremond
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@
|
||||
## firstruneprog |
||||
|
||||
### Instructions |
||||
|
||||
Write a program that receives a `string` and returns the first `rune` of that `string`. |
||||
|
||||
### Expected output : |
||||
|
||||
```console |
||||
student@ubuntu:~/piscine-go/firstruneprog$ go build |
||||
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "this is not happening" |
||||
t |
||||
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "hello" |
||||
h |
||||
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "this" "is" "not" "happening" |
||||
student@ubuntu:~/piscine-go/firstruneprog$ |
||||
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog |
||||
student@ubuntu:~/piscine-go/firstruneprog$ |
||||
``` |
Loading…
Reference in new issue