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.

26 lines
605 B

## alphamirror
6 years ago
### Instructions
5 years ago
Write a program called `alphamirror` that takes a `string` as argument and displays this `string` after replacing each alphabetical character with the opposite alphabetical character.
The case of the letter remains unchanged, for example :
'a' becomes 'z', 'Z' becomes 'A'
'd' becomes 'w', 'M' becomes 'N'
5 years ago
The final result will be followed by a newline (`'\n'`).
If the number of arguments is different from 1, the program displays nothing.
### Usage
```console
$ go run . "abc"
zyx
$ go run . "My horse is Amazing." | cat -e
Nb slihv rh Znzarmt.$
$ go run .
$
```