Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.79K
1 Posted Topic
this is my code #include <stdio.h> #include <string.h> #include <conio.h> int main(){ char x[40],b; int i,j,l; puts("enter string :"); gets(x); j = (strlen(x) -1)*strlen(x); i=0; l=0; for(i=0;i<j/2;i++){ for(l=0;l<strlen(x)-1;l++){ b = x[l]; x[l] = x[l+1]; x[l+1] = b; x[strlen(x)] = '\0'; puts(x); } } getchar; return 0; }
The End.
Mehdi_1