From 6ad8474527e1db011c3c5753f628eaa12e295215 Mon Sep 17 00:00:00 2001 From: jrosendo Date: Wed, 9 Nov 2022 10:52:52 +0000 Subject: [PATCH] docs(sumascii): fix subject - added more output examples - made instructions more clear --- subjects/sumascii/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subjects/sumascii/README.md b/subjects/sumascii/README.md index 9163e6356..ada5dbca8 100644 --- a/subjects/sumascii/README.md +++ b/subjects/sumascii/README.md @@ -2,7 +2,7 @@ ### 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. +Create a program that receives an argument and displays the byte sum in decimal format, 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`. @@ -11,6 +11,8 @@ Create a program that receives an argument and displays the sum of the ASCII val ```console $ go run . "hi" | cat -e 209$ +$ go run . "something larger" | cat -e +107$ $ go run . "" | cat -e 0$ $ go run . "S" "A"