#include <iostream> #include <string.h> using namespace std; int main(){ char str[91]; cin>>str; int len = strlen(str); for(int j = 0;j < len;j ++){ if((str[j]>='a'&&str[j]<='z')||(str[j]>='A'&&str[j]<='Z')) printf("%c",str[j]); } return 0; } |
Double click to view unformatted code.