#include<bits/stdc++.h> using namespace std; int main() { char a[10000]; gets(a); for(int i=0;i<strlen(a);i++) { if((a[i]>='A'&&a[i]<='Z')||(a[i]>='a'&&a[i]<='z')) cout<<a[i]; } return 0; }
Double click to view unformatted code.