Browse Source

printstr program for the exams

content-update
Augusto 5 years ago committed by Christopher Fremond
parent
commit
217bc31c69
  1. 2
      subjects/printstr.en.md
  2. 17
      subjects/printstrprog.en.md

2
subjects/printstr.en.md

@ -32,6 +32,6 @@ And its output :
```console
student@ubuntu:~/piscine-go/test$ go build
student@ubuntu:~/piscine-go/test$ ./test
Hello World!%
Hello World!
student@ubuntu:~/piscine-go/test$
```

17
subjects/printstrprog.en.md

@ -0,0 +1,17 @@
## printstrprog
### Instructions
- Write a program that prints one by one the characters of a string pass as an argument of the program.
### Expected output :
```console
student@ubuntu:~/piscine-go/printstrprog$ go build
student@ubuntu:~/piscine-go/printstrprog$ ./printstrprog Hello World!
Hello World!
student@ubuntu:~/piscine-go/printstrprog$ ./printstrprog
student@ubuntu:~/piscine-go/printstrprog$
student@ubuntu:~/piscine-go/printstrprog$ ./printstrprog "Hello" "World"
student@ubuntu:~/piscine-go/printstrprog$
```
Loading…
Cancel
Save