Write a prog. that will rotate string, typed in to it.

/*Write a prog. that will rotate string, typed in to it.
eg: "space"
paces acesp cespa espac
*/


/**************************************************************/
/*Programmed by : Vivek Patel**********************************/
/*For Bugs Free feel to contact********************************/
/*Website : www.vivekpatel.cjb.net*****************************/
/*Email : vivek_patel9@rediffmail.com**************************/
/**************************************************************/

#include
#include
#include
void main(){
char name[20];
int i,j,k;
clrscr();
printf("\nEnter a string : ");
scanf("%s",name);
for(i=0;i printf("\n");
for(j=i+1;j printf("%c",name[j]);
for(k=0;k<=i;k++)
printf("%c",name[k]);
}
getch();
}



Powered by Wufoo