Browse Source

readme for firstrune program in the exam

pull/276/head
Augusto 5 years ago committed by Christopher Fremond
parent
commit
29e68b61a1
  1. 19
      subjects/firstruneprog.en.md

19
subjects/firstruneprog.en.md

@ -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…
Cancel
Save