You are viewing a single comment's thread. Return to all comments →
for(i = 0; i < n; i++) { for(j = 0, k = 0; j < (strlen(s[i])/2); j++, k++) { s1[k] = s[i][2 * j]; s2[k] = s[i][(2 * j) + 1]; } s2[k] = '\0'; if((strlen(s[i]) % 2) != 0) { s1[k++] = s[i][2 * j]; } s1[k] = '\0'; printf("%s %s\n", s1, s2); }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 6: Let's Review
You are viewing a single comment's thread. Return to all comments →