Advertisement
-Vizion-

var58_2008_s2_5

Nov 18th, 2019
564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. char x[55],rez[55];
  5. int main ()
  6. {
  7.     int l=0,i,n;
  8.     cin.getline(x,55);
  9.     n=strlen(x);
  10.     for (i=0;i<=n-1;i++)
  11.     {
  12.         if (isdigit(x[i])==0 && x[i]!=' ')
  13.         {
  14.             rez[l]=x[i];
  15.             l++;
  16.         }
  17.     }
  18.     cout<<rez;
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement