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