You are viewing a single comment's thread. Return to all comments →
This works perfectly, why review bot says that this gives wrong output? what in the world???
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { char str[10001]; int numoftests = 1; scanf("%d\n",&numoftests); for (int i = 0; i < numoftests; i++) { scanf("%10000s\n", str); int length = strlen(str); for (int j = 0; j <= length; j += 2) { printf("%c", str[j]); } printf(" "); for (int j = 1; j <= length; j += 2) { printf("%c", str[j]); } 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 →
This works perfectly, why review bot says that this gives wrong output? what in the world???