STANAANDREY

pb2 10/16/2019

Oct 16th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. #include <stdio.h>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     char s[55];
  9.     gets(s);
  10.     for (int i = 0; s[i]; i++)
  11.         if (!('A' <= s[i] && s[i] <= 'Z'))
  12.             if (!('a' <= s[i] && s[i] <= 'z'))
  13.             {
  14.                 strcpy(s + i, s + i + 1);
  15.                 i--;
  16.             }
  17.  
  18.     puts(s);
  19.     return 0;
  20. }
Add Comment
Please, Sign In to add comment