You are viewing a single comment's thread. Return to all comments →
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */ int t; scanf("%d", &t); while(t--) { char str[10005]; char s1[10005]; char s2[10005]; scanf("%s", str); for(int i = 0; i < strlen(str); i++) { if(i % 2 == 0) { printf("%c", str[i]); } } printf(" "); for(int i = 0; i < strlen(str); i++) { if(i % 2 != 0) { printf("%c", str[i]); } } printf("\n"); } return 0;
}
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 →
int main() {
}