Advertisement
STANAANDREY

problema descifrare (3)

Dec 28th, 2021
1,126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. signed main() {
  5.     string s, ans;
  6.     getline(cin, s);
  7.     for (const char &ch : s) {
  8.         if (isalpha(ch)) {
  9.             ans += ch;
  10.         }
  11.     }
  12.     puts(ans.c_str());
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement