I am learning c++ and I want to print only alphabet not integer value
Program outputCode:#include <iostream> using namespace std; int main(void) { char alphabet; cout << "Enter an alphabet: "; cin >> alphabet; cout << "You entered alphabet " << alphabet; return 0; }
You entered alphabet b
You entered alphabet 2
How to print only alphabet from a to z not integer value