forked from root/public
![lopezesteban8@gmail.com](/git/assets/img/avatar_default.png)
![José Rosendo](/git/assets/img/avatar_default.png)
1 changed files with 14 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||||
|
## sumascii |
||||||
|
|
||||||
|
### Instructions |
||||||
|
|
||||||
|
Create a program that receives an argument and displays the sum of the ASCII value of each character. The sum will be a number representing the value after the sum of the bytes. If there is an invalid input print 0. |
||||||
|
|
||||||
|
### Usage |
||||||
|
|
||||||
|
```console |
||||||
|
$ go run . "hi" | cat -e |
||||||
|
209$ |
||||||
|
$ go run . "" | cat -e |
||||||
|
0$ |
||||||
|
``` |
Loading…
Reference in new issue