Browse Source

parameters counter exam exercise readme

pull/78/head
Augusto 5 years ago committed by Frenchris
parent
commit
8377fed244
  1. 21
      subjects/paramcount.md

21
subjects/paramcount.md

@ -0,0 +1,21 @@
## paramcount
### Instructions
Write a program that displays the number of arguments passed to it, followed by
a newline.
If there are no arguments, just display a 0 followed by a newline.
Example of output :
```console
student@ubuntu:~/student/paramcount$ go build
student@ubuntu:~/student/paramcount$ ./paramcount 1 2 3 5 7 24
6
student@ubuntu:~/student/paramcount$ ./paramcount 6 12 24 | cat -e
3$
student@ubuntu:~/student/paramcount$ ./paramcount | cat -e
0$
student@ubuntu:~/student/paramcount$
```
Loading…
Cancel
Save