mirror of https://github.com/01-edu/public.git
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.
20 lines
598 B
20 lines
598 B
5 years ago
|
## lastruneprog
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
Write a program that receives a `string` and returns the last `rune` of a `string`.
|
||
|
|
||
|
### Expected output :
|
||
|
|
||
|
```console
|
||
|
student@ubuntu:~/piscine-go/firstruneprog$ go build
|
||
|
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "this is not happening"
|
||
|
g
|
||
|
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "hello"
|
||
|
o
|
||
|
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$
|
||
|
```
|