From 01a3b337ad14df7deb7fc2a5e8d7818f014b59c4 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 1 Oct 2019 19:58:18 +0100 Subject: [PATCH] lastrune program for the exam --- subjects/lastruneprog.en.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 subjects/lastruneprog.en.md diff --git a/subjects/lastruneprog.en.md b/subjects/lastruneprog.en.md new file mode 100644 index 000000000..c687e6944 --- /dev/null +++ b/subjects/lastruneprog.en.md @@ -0,0 +1,19 @@ +## 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$ +```