mirror of https://github.com/01-edu/public.git
estlop
2 years ago
committed by
José Rosendo
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