    #include <stdio.h>
    #include <string.h>
     
    reverse(char out[1024])
    {
    int i,j;
    i = 0;
     
     
    printf("Podaj slowo, ktorej chcesz odwrocic\n");
    scanf("%s",out);
    j = strlen(out);
     
    while (out[i]!=out[j])
    {
    out[i]=out[j];
    ++i;
    --j;
    printf("%c",&out[j]);
     
    }
     
    printf("Nowe slowo to %s",out);
    }
     
     
    int main(void)
    {
    char out[1024];
    reverse(out);
     
     
     
    return 0;
    getchar();
     
    }