Advertisement
edutedu

vr 58

Sep 22nd, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char a[100], b[100];
  8. int i, n, j=0;
  9. cin.get(a, 100);
  10. cin.get();
  11. n=strlen(a);
  12. for(i=0; i<n; i++)
  13. {
  14. if(!strchr("1234567890 ",a[i]))
  15. b[j++]=a[i];
  16. }
  17. cout<<b;
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement