Browse Source

Update of alphamirror instructions

standardization of isntructions
content-update
Frenchris 5 years ago
parent
commit
472101c7b5
  1. 20
      subjects/alphamirror.md

20
subjects/alphamirror.md

@ -1,20 +1,20 @@
# alphamirror ## alphamirror
## Instructions ### Instructions
Write a program called alpha_mirror that takes a string and displays this string Write a program called alphamirror that takes a string as argument and displays this string
after replacing each alphabetical character by the opposite alphabetical after replacing each alphabetical character with the opposite alphabetical
character, followed by a newline. character.
The case of the letter stays the same, for example :
'a' becomes 'z', 'Z' becomes 'A' 'a' becomes 'z', 'Z' becomes 'A'
'd' becomes 'w', 'M' becomes 'N' 'd' becomes 'w', 'M' becomes 'N'
and so on. The final result will be followed by a newline.
Case is not changed.
If the number of arguments is not 1, display only a newline. If the number of arguments is not 1, the program will display only a newline.
And its output : Example of output :
```console ```console
student@ubuntu:~/student/alphamirror$ go build student@ubuntu:~/student/alphamirror$ go build

Loading…
Cancel
Save