Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <stdio.h>
- using namespace std;
- int main()
- {
- char s[55];
- gets(s);
- for (int i = 0; s[i]; i++)
- if (!('A' <= s[i] && s[i] <= 'Z'))
- if (!('a' <= s[i] && s[i] <= 'z'))
- {
- strcpy(s + i, s + i + 1);
- i--;
- }
- puts(s);
- return 0;
- }
Add Comment
Please, Sign In to add comment