Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- char x[55],rez[55];
- int main ()
- {
- int l=0,i,n;
- cin.getline(x,55);
- n=strlen(x);
- for (i=0;i<=n-1;i++)
- {
- if (isdigit(x[i])==0 && x[i]!=' ')
- {
- rez[l]=x[i];
- l++;
- }
- }
- cout<<rez;
- return 0;
- }
- 58
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement