Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static string rot(string s, int n) => return string.Concat(s.Select(x => (char)(x >= 'A' && x <= 'Z' ? (x + n > 'Z' ? x - 26 + n : x + n) : x >= 'a' && x <= 'z' ? (x + n > 'z' ? x - 26 + n : x + n) : x)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement