You are viewing a single comment's thread. Return to all comments →
My C++ Solution:
int main() { string str; cin>>str; int row=floor( sqrt( str.length() ) ); int col= ceil( sqrt( str.length() ) ); for(int i=0; i<col; i++) { int j=i; while(j<str.length()) {cout<<str[j]; j+=col;} cout<<" "; } return 0; }
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 →
My C++ Solution: