char str[]="abcdABCD1234";
    int i,len=strlen(str)-1;
    int j=0,l=0;


    printf("%s",str);
     printf("\n");
    for(i=0;i<=len;i++)
    {
                      printf("%c",str[j]);
                      j=j+4;
                      if(j>len)j=++l;

    }

it prtint your desired result ,

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to