Browse Source

feat : add samecase sunject

1136-samecase
zainabdnaya 2 years ago
parent
commit
3f98031242
  1. 26
      subjects/samecase/REDME.md

26
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
$
```
Loading…
Cancel
Save