Write a function `rot14` that returns the `string` within the parameter transformed into a `rot14 string`, that replaces a letter with the 14th letter after it, in the alphabet.
Write a function `rot14` that returns the `string` within the parameter transformed into a `rot14 string`.
Each letter will be replaced by the letter 14 spots ahead in the alphabetical order.
- 'z' becomes 'n' and 'Z' becomes 'N'. The case of the letter stays the same.
Write a program that takes 3 arguments, the first argument is a `string` in which to replace a letter (the 2nd argument) by another one (the 3rd argument).
Write a program that takes 3 arguments, the first argument is a `string` in which a letter (the 2nd argument) will be replaced by another one (the 3rd argument).
- If the number of arguments is different from 3, the program displays nothing.
- If the number of arguments is different from 3, the program displays nothing.
@ -13,6 +13,8 @@ Write a program that takes 3 arguments, the first argument is a `string` in whic
Write a program that takes two `string` and checks whether it is possible to write the first `string` with characters from the second `string`, while respecting the order in which these characters appear in the second `string`.
Write a program that takes two `string` and checks whether it is possible to write the first `string` with characters from the second `string`. This rewrite must respect the order in which these characters appear in the second `string`.
If it is possible, the program displays the `string` followed by a newline (`'\n'`), otherwise it simply displays nothing.
If it is possible, the program displays the `string` followed by a newline (`'\n'`), otherwise it simply displays nothing.
@ -11,6 +11,8 @@ If the number of arguments is different from 2, the program displays nothing.