From 12260496df05e4112c61ca5d881f31e9c771e6f4 Mon Sep 17 00:00:00 2001 From: estlop Date: Tue, 28 Jun 2022 13:19:58 +0100 Subject: [PATCH] Add readme file for sumascii subject --- subjects/sumascii/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 subjects/sumascii/README.md diff --git a/subjects/sumascii/README.md b/subjects/sumascii/README.md new file mode 100644 index 00000000..0e27eac5 --- /dev/null +++ b/subjects/sumascii/README.md @@ -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$ +```