#include #include int main(){ char str[100]; char temp; int i, j; gets(str); for(i=0;i *(str+j+1)){ temp = *(str+j); *(str+j) = *(str+j+1); *(str+j+1) = temp; } } } puts(str); return 0; }