# include "stdio.h"
# include "string.h"
# include "conio.h"
int main()
{
int nloop,nCount=0;
char a[100];
int length;
printf("enter the word\n");
gets(a);
length=(int)strlen(a);
while(nCount<length)
{
for(nloop=0+nCount;nloop<length;nloop++)
{
printf("%c",a[nloop]);
}
for(nloop=0;nloop<nCount;nloop++)
{
printf("%c",a[nloop]);
}
printf("\t");
nCount++;
}
return 0;
}
OUTPUT:
enter the word
INDIA
INDIA NDIAI DIAIN IAIND AINDI Press any key to continue . . .
No comments:
Post a Comment