Caesar Cipher (Strings)
Read a shift k and a line of text. Shift every letter forward by k (wrapping z→a, keeping case). Leave other characters alone.
Input: k on the first line, text on the second.
Output: The encoded text.
Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- (position + k) mod 26.