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