#include #include #define MAXL 100 int main() { char s[MAXL]; char t[MAXL]; printf("S->"); gets_s(s, MAXL - 1); strcpy_s(t, MAXL - 1, s); strcat_s(t, MAXL - 1, s); int i = 0; while (s[i]) printf("%c\n", s[i++]); printf("%s\n", t); }