#include <iostream> #include <cctype> using namespace std; int main() { char ch; cout << "Enter text for analysis, and type @ to terminate input. \n"; cin.get(ch); while (ch != '@') { if (isupper(ch)) { ch = tolower(ch) ; } else if (islower(ch)) { ch = toupper(ch); } if (isdigit(ch) == false) { cout << ch; } cin.get(ch); } return 0; }