From e12c0a9c5fc0c5e66799aa419cafc28dde623e17 Mon Sep 17 00:00:00 2001 From: zainabdnaya Date: Thu, 30 Jun 2022 16:45:46 +0100 Subject: [PATCH] Correct Same Case --- subjects/samecase/REDME.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/subjects/samecase/REDME.md b/subjects/samecase/REDME.md index 644dd6dd..8e8b8c0e 100644 --- a/subjects/samecase/REDME.md +++ b/subjects/samecase/REDME.md @@ -2,12 +2,12 @@ ### Instructions -Write a program that takes 2 arguments and returns: - -- If either of the characters is not a letter, return -1 -- If both characters are the same case, return 1 -- If both characters are letters, but not the same case, return 0 -- All outputs should be followed by a new-line character +Write a program that takes 2 characters as arguments and does the following: +- If either of the characters is not a letter, return -1. +- If both characters are the same case, return 1. +- If both characters are letters, but not the same case, return 0. +- All outputs should be followed by a newline character. +- If the argument is more than one character, return a newline. ### Usage @@ -18,10 +18,10 @@ $ go run . "p" "w"| cat -e 1$ $ go run . "p" "Q" | cat -e 0$ -$go run . "p" "4" | cat -e +$ go run . "p" "4" | cat -e -1$ $ go run . "P" "Q" "W" | cat -e $ -$go run . A b | cat -e --1$ +$ go run . A b | cat -e +0$ ``` \ No newline at end of file