Skip to main content
Commonmark migration
Source Link

#C, 64 bytes

C, 64 bytes

Call f() with the string to square.

m;f(char*s){for(m=sqrt(strlen(s));*s;s+=m)printf("%.*s\n",m,s);}

Try it on ideone.

#C, 64 bytes

Call f() with the string to square.

m;f(char*s){for(m=sqrt(strlen(s));*s;s+=m)printf("%.*s\n",m,s);}

Try it on ideone.

C, 64 bytes

Call f() with the string to square.

m;f(char*s){for(m=sqrt(strlen(s));*s;s+=m)printf("%.*s\n",m,s);}

Try it on ideone.

deleted 1 character in body
Source Link
owacoder
  • 1.6k
  • 8
  • 12

#C, 6564 bytes

Call f() with the string to square.

m;f(char*s){for(m=sqrt(strlen(s));*s;printf;*s;s+=m)printf("%.*s\n",m,s),s+=m);}

Try it on ideoneTry it on ideone.

#C, 65 bytes

Call f() with the string to square.

m;f(char*s){for(m=sqrt(strlen(s));*s;printf("%.*s\n",m,s),s+=m);}

Try it on ideone.

#C, 64 bytes

Call f() with the string to square.

m;f(char*s){for(m=sqrt(strlen(s));*s;s+=m)printf("%.*s\n",m,s);}

Try it on ideone.

Source Link
owacoder
  • 1.6k
  • 8
  • 12

#C, 65 bytes

Call f() with the string to square.

m;f(char*s){for(m=sqrt(strlen(s));*s;printf("%.*s\n",m,s),s+=m);}

Try it on ideone.