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