Advertisement
edutedu

vr 62

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