forked from root/public
Compare commits
6 Commits
master
...
1121-front
Author | SHA1 | Date |
---|---|---|
Hamza elkhatri | 8a6a1b8d13 | 2 years ago |
Hamza elkhatri | be41a07c7b | 2 years ago |
hamza | 44f8692018 | 2 years ago |
hamza | 56dde3d3a1 | 2 years ago |
hamza | 96db7e9558 | 2 years ago |
hamza | c69dbf3738 | 2 years ago |
1 changed files with 26 additions and 0 deletions
@ -0,0 +1,26 @@
|
||||
## frontback |
||||
|
||||
### Instructions |
||||
|
||||
Write a program that prints the previous and next alphabet of a given alphabet. |
||||
- If the number of arguments is different from `1`, print (`'\n'`). |
||||
- If the length of the argument is different from `1`, print (`'\n'`) |
||||
- If the argument is not a letter, print (`'\n'`) |
||||
- Print the previous alphabet and the next alphabet except for the last and the first alphabet of the alphabet. |
||||
|
||||
### Usage |
||||
|
||||
```console |
||||
$ go run . | cat -e |
||||
$ |
||||
$ go run . a | cat -e |
||||
ab$ |
||||
$ go run . "B" | cat -e |
||||
ABC$ |
||||
$ go run . "z" | cat -e |
||||
yz$ |
||||
$ go run . "Hello World!" | cat -e |
||||
$ |
||||
$ go run . "1" | cat -e |
||||
$ |
||||
``` |
Loading…
Reference in new issue