Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- char chn[81], crt, *ptr1, *ptr2;
- scanf ("%80[^\n]",chn);
- ptr1 = ptr2 = chn;
- while (*++ptr2);
- ptr2--;
- while (ptr1 < ptr2) {
- *ptr1 ^= *ptr2;
- *ptr2 ^= *ptr1;
- *ptr1 ^= *ptr2;
- ptr1++; ptr2--;
- }
- ptr2 = chn;
- while (*ptr2 != ' ' && *ptr2) ptr2++;
- ptr1 = chn - 1;
- while (1)
- {
- ptr1++; ptr2--;
- while (ptr1 < ptr2) {
- *ptr1 ^= *ptr2;
- *ptr2 ^= *ptr1;
- *ptr1 ^= *ptr2;
- ptr1++; ptr2--;
- }
- ptr2++;
- while (*ptr2 != ' ' && *ptr2) ptr2++;
- if (!*ptr2) break;
- ptr1 = ptr2;
- ptr2++;
- while (*ptr2 != ' ' && *ptr2) ptr2++;
- }
- /* InsΓ©rez votre code ici */
- printf ("%s\n",chn);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment