#include<bits/stdc++.h> using namespace std; typedef long long ll; int main (){ char s[100], str[100]; int flag = 0, cnt = 0; scanf("%s", s); for(int i = 0;i < strlen(s);i++){ if(isalpha(s[i])){ str[cnt++] = s[i]; } } printf("%s\n", str); return 0; } |
Double click to view unformatted code.