You are viewing a single comment's thread. Return to all comments →
C++
string encryption(string s) { string res = ""; int col = ceil(sqrt(s.length())); for (int c = 0; c < col; c++) { for (int i = c; i < s.length(); i+=col) { res.append(1,s[i]); } res.append(" "); } return res; }
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++