You are viewing a single comment's thread. Return to all comments →
Java
public static String encryption(String s) { // Write your code here double squareRoot = Math.sqrt(s.length()); int column = (int)Math.ceil(squareRoot); String output=""; for (int i = 0; i < column; i++) { for (int j = i; j < s.length(); j+=column) { output+=s.charAt(j); } output+=" "; } return output; }
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 →
Java