forked from root/public
Compare commits
2 Commits
master
...
1258-canyo
Author | SHA1 | Date |
---|---|---|
estlop | 89ceacfdf5 | 2 years ago |
estlop | 98357995e5 | 2 years ago |
1 changed files with 18 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||||||
|
## canyoucount |
||||||
|
|
||||||
|
### Instructions |
||||||
|
|
||||||
|
Your program will receive some arguments. Count how many characters they have in total and print them. If the number of arguments is not enough, print 0. |
||||||
|
|
||||||
|
### Usage |
||||||
|
|
||||||
|
```console |
||||||
|
$ go run . "hello" "how are you?" | cat -e |
||||||
|
17$ |
||||||
|
$ go run . "a" | cat -e |
||||||
|
1$ |
||||||
|
$ go run . "I am" "myself." | cat -e |
||||||
|
11$ |
||||||
|
$ go run . | cat -e |
||||||
|
0$ |
||||||
|
``` |
Loading…
Reference in new issue