You are viewing a single comment's thread. Return to all comments →
int n=str.length(); int col=ceil(sqrt(n)); for(int i=0;i<col;i++) { for(int j=0;i+j<n;j+=col) { cout<<str[i+j]; } cout<<" "; }
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 →