forked from root/public
zainabdnaya
2 years ago
1 changed files with 26 additions and 0 deletions
@ -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…
Reference in new issue