You are viewing a single comment's thread. Return to all comments →
C# Solution
public static string encryption(string s) { var trimedS = s.Replace(" ", string.Empty); var columns = (int)Math.Ceiling(Math.Sqrt(trimedS.Length)); string result = string.Empty; for(int i = 0; i<columns;i++) { for(int j = i;j<trimedS.Length;j+=columns) { result += trimedS[j]; } result += " "; } return result; }
Seems like cookies are disabled on this browser, please enable them to open this website
Encryption
You are viewing a single comment's thread. Return to all comments →
C# Solution