Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. 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