mirror of https://github.com/01-edu/public.git
![aug.ornelas@gmail.com](/git/assets/img/avatar_default.png)
![Frenchris](/git/assets/img/avatar_default.png)
1 changed files with 21 additions and 0 deletions
@ -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…
Reference in new issue