#include using namespace std ; int main() { char ch; // Get a character from the user. cout << "Enter a digit or a letter: "; ch = cin.get(); // Determine what the user entered. if (ch >= 48 && ch <= 57 ) cout << "You entered a digit.\n"; return 0; }