From a3350ff8d4c0a6358fe8a0b56f0979f86bffbf48 Mon Sep 17 00:00:00 2001 From: zainabdnaya Date: Wed, 15 Jun 2022 19:59:18 +0100 Subject: [PATCH] feat : add samecase sunject --- subjects/samecase/REDME.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 subjects/samecase/REDME.md diff --git a/subjects/samecase/REDME.md b/subjects/samecase/REDME.md new file mode 100644 index 00000000..64f2ddd5 --- /dev/null +++ b/subjects/samecase/REDME.md @@ -0,0 +1,26 @@ +## Same-Case + +### 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 + +### Usage + + + +```console +$ go run . "p" "w"| cat -e +1$ +$ go run . "p" "Q" | cat -e +0$ +$go run . "p" "4" | cat -e +-1$ +$ go run . "P" "Q" "W" | cat -e +$ + +``` \ No newline at end of file