Răspuns:
#include <bits/stdc++.h>
using namespace std;
int main() {
string text; int lung, i, j;
getline(cin, text);
while (text[lung] != '\0') lung++;
for (i = 0; text[i] != '\0'; i++) {
while (text[i] >= 'a' && text[i] <= 'z') {
for (j = i; text[j] != '\0'; j++) {
text[j] = text[j + 1];
} text[j] = '\0';
}
} cout << text;
return 0;
}
Explicație: