Advertisement
Denistod

Untitled

Nov 18th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 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. }
  21. 58
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement