mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
330 B
15 lines
330 B
2 years ago
|
## 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$
|
||
|
```
|