Give program for this output
abcdeedcba
abcdxxdcba
abcxxxxcba
abxxxxxxba
axxxxxxxxa

#include <stdio.h>

int main()
{
printf("abcdeedcba\nabcdxxdcba\nabcxxxxcba\nabxxxxxxba\naxxxxxxxxa\n");

return 0;
}

thank u!
but i need this output using for loop

const char const * strings[] = {"abcdeedcba\n","abcdxxdcba\n","abcxxxxcba\n","abxxxxxxba\n","axxxxxxxxa\n",
     NULL};
for(char const ** ptr = strings; *ptr; ++ptr)
{
	printf(*ptr);
}

I'd start with plgriffith's program and make a minor change

#include <stdio.h>

int main()
{
    char buf[] = "abcdeedcba\nabcdxxdcba\nabcxxxxcba\nabxxxxxxba\naxxxxxxxxa\n";
    int  i;

    i = 0;
    while (buf[i])
    {
        putchar (buf[i++]);
    }
    return 0;
}