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