Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- char str[100], rev[100];
- gets(str);
- int i,j=0;
- for(i=strlen(str)-1;i>= 0;i--)
- {
- rev[j] = str[i];
- j++;
- //printf("%c", str[i]);
- }
- puts(rev);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement