forked from root/public
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
545 B
27 lines
545 B
![]()
2 years ago
|
## frontback
|
||
|
|
||
|
### Instructions
|
||
![]()
2 years ago
|
|
||
![]()
2 years ago
|
Write a program that prints the previous and next alphabet of the alphabet.
|
||
![]()
2 years ago
|
- If the number of arguments is different from 1, print (`'\n'`).
|
||
|
- If the length of the argument is different from 1, print (`'\n'`)
|
||
![]()
2 years ago
|
- If the argument is not a letter, print (`'\n'`)
|
||
![]()
2 years ago
|
- There are no letters to print before 'a' or after 'z'.
|
||
![]()
2 years ago
|
|
||
|
### Usage
|
||
|
|
||
![]()
2 years ago
|
```console
|
||
![]()
2 years ago
|
$ 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
|
||
|
$
|
||
|
```
|