Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- int l=0,i=0;
- char temp,ch[1000];
- gets(ch);
- l=strlen(ch)-1;
- while(i<l)
- {
- temp=ch[i];
- ch[i]=ch[l];
- ch[l]=temp;
- i++;
- l--;
- }
- printf("%s",ch);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement